https://github.com/danielmackay/dotnet-todo-api
Simple API for todo applications
https://github.com/danielmackay/dotnet-todo-api
api-rest auto-mapper clean-architecture dotnet6 fluent-validation mediatr
Last synced: 23 days ago
JSON representation
Simple API for todo applications
- Host: GitHub
- URL: https://github.com/danielmackay/dotnet-todo-api
- Owner: danielmackay
- License: mit
- Created: 2022-08-27T00:30:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T12:23:21.000Z (almost 4 years ago)
- Last Synced: 2025-03-02T13:36:33.051Z (over 1 year ago)
- Topics: api-rest, auto-mapper, clean-architecture, dotnet6, fluent-validation, mediatr
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dotnet-todo-api
Simple Todo API. Based on the CleanArchitecture template, but with the following changes:
- No authentication
- No authorization
- No domain events
## Getting Started
Run the API via visual studio or via CLI:
```ps
dotnet run --project .\src\Todo.Web\
```
On start up the following will happen:
- database will be created
- database will be seeded with test data
Swagger UI can then can be seen via: https://localhost:7110/swagger/index.html
## Database
To add a migration:
```ps
dotnet ef migrations add "Initial" --project .\src\Todo.Infrastructure --startup-project .\src\Todo.Web --output-dir Persistence\Migrations`
```
To remove the last migration:
```ps
ef migrations remove
```
To update the database:
```ps
dotnet ef database update --project .\src\Todo.Infrastructure --startup-project .\src\Todo.Web
```