Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cemutku/libraryapp
ASP.NET Core API Example
https://github.com/cemutku/libraryapp
dockercompose dockerfile entity-framework-core net-core-api swagger-ui
Last synced: 1 day ago
JSON representation
ASP.NET Core API Example
- Host: GitHub
- URL: https://github.com/cemutku/libraryapp
- Owner: cemutku
- Created: 2020-04-19T20:01:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T13:18:44.000Z (over 4 years ago)
- Last Synced: 2025-01-30T21:21:07.015Z (9 days ago)
- Topics: dockercompose, dockerfile, entity-framework-core, net-core-api, swagger-ui
- Language: C#
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LibraryApp
Sample API with ASP.NET Core (3.1) API
It contains basic async HTTP methods:
- GET
- POST
- PUT
- DELETE## Development
Library API is using PostgreSQL. For local development environment run the docker command below:
`docker run --name local-postgres -e POSTGRES_PASSWORD=P@123 -p 5432:5432 -d postgres`
After docker run command check postgres instance on PowerShell with `docker ps` command.
When database instance ready, in LibraryApp.Data path `update-database` in package manager console or `dotnet ef database update` in CLI
After all these steps, the application is ready for use.
## Alternative development environment (docker-compose)
For development and dotnet watcher run the `docker-compose -f docker-compose.dev.yml up` in /LibraryApp directory, than hit the http://localhost:5000/index.html and check the API methods in swaggerui.
It also has elasticsearch for logging and under http://localhost:5601/app/kibana you can check elasticsearch log records.