This is the backend API for the Meal Planner project.
Setups:
- Clone the repository
- Install .NET 8.0 (https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-8.0.203-windows-x64-installer)
- Open the solution MPWebApi. You can now run the solution using Visual Studio
- Set Up Database
The project utilizes MySQL as the core database for the whole project. For simplicity, Docker would be used to launch the the database. In order to run MySQL using Docker, please following the below steps:
For Docker installation, please refer to the official Docker Engine Installation
Docker-Compose library is would be readily installed when we use Docker Desktop. In case you could not successfully find Docker-Compose in your machine. Please following the Docker Compose Installation
After completing the above two steps, from the root directory (where the docker-compose.yml
is located) of this
repository, run the below commands to run MySQL. The database port would be exposed via port 3306. You can change database
port into different one by editing the docker-compose.yml
file.
docker compose up -d
or
docker-compose up -d