initial commit
This commit is contained in:
@@ -1,2 +1,32 @@
|
||||
# This is a demo
|
||||
Thanks for reading. Bye!
|
||||
# demo001
|
||||
|
||||
A simple ASP.NET Core Web API CRUD app using PostgreSQL.
|
||||
|
||||
## Local development
|
||||
|
||||
Requirements:
|
||||
- .NET SDK
|
||||
- Docker
|
||||
|
||||
### Run with docker-compose
|
||||
|
||||
```powershell
|
||||
cd .\demo001
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
The API will be available at `http://localhost:5000`.
|
||||
|
||||
### API endpoints
|
||||
|
||||
- `GET /api/TodoItems`
|
||||
- `GET /api/TodoItems/{id}`
|
||||
- `POST /api/TodoItems`
|
||||
- `PUT /api/TodoItems/{id}`
|
||||
- `DELETE /api/TodoItems/{id}`
|
||||
|
||||
### Notes
|
||||
|
||||
- `Dockerfile` is ready for container builds.
|
||||
- `docker-compose.yml` starts PostgreSQL and the API locally.
|
||||
- Later you can reuse the Docker image for Kubernetes deployment.
|
||||
|
||||
Reference in New Issue
Block a user