This project was made as a challenge for Magazine Luiza's job interview process.
- Accessible instance of MySQL Server. The account used to access the server needs permissions to create and drop databases, as well as defining a database schema and change it's data.
- .NET Core 2.2 (you can download it here).
- Clone this project into some directory of your preference.
- Build the project using an IDE, code editor or the terminal (by running
dotnet build
inside project folder).
You will need to setup MySQL database access for the project before being able to run the API and/or test it.
- Open appsettings.json and locate the
MagaluDatabase
connection string, under the sectionConnectionStrings
. Change the connection string to match a connection string used to access the needed MySQL instance. - Run integration tests of project
Magalu.Challenge.Web.Api.IntegrationTests
using an IDE, code editor or the terminal (by runningdotnet test
inside the test project folder).