This repository showcases a sample API built with .NET 8, designed to demonstrate the integration of Docker Compose for container orchestration. The application utilizes PostgreSQL as its primary database and Redis for caching, providing a robust foundation for scalable web Apis.
To get a local copy up and running, follow these simple steps.
- .NET 8 SDK
- Docker
- Clone the repo
git clone https://github.com/poorna-soysa/books-api-docker-compose-postgresql-redis.git
- Navigate to the project directory
cd books-api-docker-compose-postgresql-redis
- Build and run the application:
docker-compose up --build
This template follows the Vertical Slice Architecture, which organizes code by features rather than technical concerns. Each feature is self-contained, promoting high cohesion and low coupling.
- Built with .NET 8: Utilizes the latest features for efficient development.
- Docker Compose: Manages multi-container applications seamlessly.
- PostgreSQL: Powerful relational database for data storage.
- Redis: Caching solution for improved performance.
- .NET 8
- PostgreSQL
- Redis
- EF Core
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Creat a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
If you find this project helpful, consider buying me a coffee!