33 lines
607 B
Markdown
33 lines
607 B
Markdown
# 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.
|