This project is an ASP.NET Core Web API application that utilizes Entity Framework Core for database interactions and Swagger for API documentation.
-
Clone the repository:
git clone https://github.com/mcoldibelli/bookstore.git cd bookstore
-
Restore the project dependencies:
dotnet restore
-
Start the Docker container:
docker-compose up -d
-
Apply the database migrations:
dotnet-ef database update
-
Run the application:
dotnet run
The application should now be running on https://localhost:7106 (or http://localhost:5001).
For simplicity and ease of setup, the database password is stored in plain text within the docker-compose.yml
file. This approach is used because this project is not intended for deployment to a production environment.