An open API service indexing awesome lists of open source software.

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.

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
```