https://github.com/pdrum/todo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pdrum/todo
- Owner: pdrum
- Created: 2019-07-11T19:27:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T15:40:54.000Z (almost 7 years ago)
- Last Synced: 2023-03-02T12:01:52.387Z (over 3 years ago)
- Language: Go
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TODO API
--------
The project is a demo CRUD app, it exposes a POST endpoint and a GET
endpoint for creating some to do list items and getting list of created
items.
Each to do item has an `id`, a `title` and a `done` field.
In order to setup db and run migrations of project, run
```
DB_PASSWORD= docker-compose up
```
If you want to drop db for any reason run
```
DB_PASSWORD= docker-compose down
```
the in order to run the project run
```
GO111MODULE=on DB_PASSWORD= go run main.go
```