https://github.com/brybrophy/dotnet_core_todo_api_docker
https://github.com/brybrophy/dotnet_core_todo_api_docker
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brybrophy/dotnet_core_todo_api_docker
- Owner: brybrophy
- Created: 2017-08-04T23:24:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-04T23:32:24.000Z (almost 9 years ago)
- Last Synced: 2025-04-13T13:49:22.548Z (about 1 year ago)
- Language: C#
- Size: 5.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## This is a simple CRUD API for todos.
I built it to learn the process of deploying a dotnet core application to heroku using a docker container.
You can test the API using Postman at [https://todo-api-docker.herokuapp.com/api/todo](https://todo-api-docker.herokuapp.com/api/todo).
The process for deployment to heroku is as follows:
- run `dotnet publish -c Release -o out`
- run `docker build -t [DOCKER_IMAGE_NAME] -f ./Dockerfile.web .`
- run `docker tag [DOCKER_IMAGE_NAME] registry.heroku.com/[HEROKU_APP_NAME]/web`
- run `heroku container:push web -a [HEROKU_APP_NAME]`
- run `heroku open -a [HEROKU_APP_NAME]`
This project uses Entity Framework In Memory Storage.