chore: update README.md
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dawid Wysokiński 2022-12-11 09:51:49 +01:00
parent 900e7abc58
commit c71f24c00d
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 12 additions and 1 deletions

View File

@ -22,6 +22,9 @@ Prerequisites:
8. **direnv** (optional, but recommended)
```shell
# if you have direnv installed
direnv allow
# install git hooks and required tools
make install
@ -46,6 +49,15 @@ go test -v ./...
TESTS_DB_DSN=postgres://sessions:sessions_pass@127.0.0.1/sessions go test -v ./...
```
#### Creating a new database migration
```shell
# create a migration
go run ./cmd/sessions/main.go db migration create go migration 1
```
![img.png](docs/migration.png)
## Configuration options
Configuration options can be specified via environment variables.
@ -65,7 +77,6 @@ Configuration options can be specified via environment variables.
| ``API_CORS_ALLOW_CREDENTIALS`` | ``false`` | Whether requests with credentials are allowed |
| ``API_CORS_ALLOWED_METHODS`` | ``HEAD,GET,POST,PUT`` | Comma-separated list of allowed methods |
| ``API_CORS_MAX_AGE`` | ``300`` | Max time to cache response (seconds) |
| | | |
## License

BIN
docs/migration.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB