https://github.com/mxssl/todo
My example of a todo app.
https://github.com/mxssl/todo
Last synced: 12 months ago
JSON representation
My example of a todo app.
- Host: GitHub
- URL: https://github.com/mxssl/todo
- Owner: mxssl
- Created: 2020-10-27T02:01:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T15:59:48.000Z (over 5 years ago)
- Last Synced: 2025-06-29T18:02:42.049Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 2.32 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todo
My example of a todo app.
## Development
### Task
Install [task](https://taskfile.dev). Use `task -l` to see all possible commands.
```text
task: Available tasks for this project:
* dc-build: Run docker-compose build
* dc-up: Run docker-compose up
* docker-lint: Run linters in docker containers
* docker-release: Build and push docker image
* github-release: Goreleaser
* github-release-dry: Goreleaser test
* lint: Run linters
* run: Run server for development
* swagger: Run docker-compose up swagger
* swagger-generate: Generate server based on a swagger file
* swagger-validate: Validate swagger file
* test: Run unit tests
```
### Swagger
#### Validate swagger file
```sh
task swagger-validate
```
#### Generate code based on a swagger spec file
```sh
task swagger-generate
```
### Databse migratons
#### Create new migrations
```sh
DB_MIGRATONS_NAME="new_migrations_name" task migrations-create
```
#### Run existing migrations
```sh
task migrations-up
```