This project implements a web application using Docker, MongoDB, and the Repository Pattern. The application utilizes Testcontainers.MongoDb to spin up a temporary MongoDB instance with seed data for testing purposes on how docker can be used in practical case.
Clean separation of concerns, with data access managed through MongoDB repositories.
The web application is containerized and can be run with Docker.
On application startup, seed data is inserted into the temporary MongoDB instance.
MongoDB is spun up in a Docker container during testing, ensuring an isolated and consistent testing environment.
Docker Desktop logs are exposed as endpoints for easier debugging.
To run this project, follow these steps:
- Clone the repository.
- Open the project and set Mongo.TestContainer as Startup project.
- Run Docker Desktop and make sure it is running as desktop-linux.
- Build and run the project.
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Test your changes.
- Submit a pull request.
If you have any questions or suggestions, please feel free to open Issue.