This repository houses a .NET Core 3.1 Web API built to teach Cloud native app development. Along the way, we also learn sustainable development practices
- Building an application that follows The Twelve-factor principles
- Packaged as a Docker container
- Hosted on AWS (to begin with) with infrastructure provisioned through code (IaC)
- Continuous integration, Continuous deployment and delivery (CI CD) using Github Actions
Modern, cloud native applications do not exist on an island. An application exists as part of an ecosystem to solve a business problem. We will also learn how to build applications that integrate with the ecosystem in a loosely coupled manner using an event-driven architecture
Reach out if this is of interest!
- Run the following command
cd src/TodoApp.Api
- Next, build the image
docker build -t todoapi .
- Check the built up image
docker image ls
# should show todoapi with tag latest
- Run a container from this image. The option -p specifies host port - container port mapping. In this case, port 5000 on host will bind to port 80 on the container
docker run -p 5000:80 todoapi
You can now access the api by browsing to http://localhost:5000/todos
Back on the command prompt, press CTRL+C to stop the container