ContainerNinja is a boilerplate template project to demonstrate building a multi-container Full Stack application with ASP.NET Core (.NET 6) Web API following Clean Architecture, and Angular.
ContainerNinja is a boilerplate template project to demonstrate building a multi-container Full Stack application with ASP.NET Core (.NET 6) Web API following Clean Architecture, and Angular. The solution uses Docker Compose to orchestrate deployment of this entire stack to Docker.
The Solution is built keeping in mind the most fundamental blocks an API must have in order to build a scalable and near-perfect API component. The solution offers a complete implementation of the following:
To get started, follow the below steps:
> docker-compose build --force-rm --no-cache && docker-compose up
You can also just run the solution without Docker by following the steps below:
> dotnet run --project ./ContainerNinja.API
> npm install && npm start
The solution adds a default user to the database while starting up as a part of Seeding. You can use the below credentials to Login and start adding items.
EmailAddress: [email protected]; Password: admin
Docker-Compose is a configuration file which contains instructions for the Docker about how services should be built from respective Dockerfiles. While a Dockerfile aims at creating and customizing application containers by means of base images and instructions, the Docker-Compose file works on top of the Dockerfile and helps developers in running docker containers with complex runtime specifications such as ports, volumes and so on.
Read more: Dockerizing a Full Stack Application with Docker Compose
If you face any issues or would like to drop a suggestion,
The solution is completely open source and is licensed with MIT License.
I really hope this solution helps developers get started on building awesome things with ASP.NET Core (.NET 6) Web API and get into the world of containerized development real quick.
Found this solution helpful and useful? You can do these to help this reach greater audience.
For more detailed articles and how-to guides, visit https://referbruv.com