DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: b8ce30de25392fdd5187939b6c14996f8062e509 deck-builder/api/README.md -rw-r--r-- 799 bytes
b8ce30deJonni Liljamo feat(api, client, server): add shared as dependency to all 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# API for laurelin

Use the `RUST_LOG` environment variable to configure logging level.
Defaults to `RUST_LOG=info` in the default docker-compose.yaml.

## Scripts
`scripts/dev-start-db.sh` can be used to manage a PostgreSQL database in a
development environment. Uses `docker-compose.dev.yaml` to set it up.

`scripts/dev-migr.sh` can be used to run migration in the development
database that the other script sets up.

`scripts/dev-migr-redo.sh` can be used to redo the migrations.
As in, it will run down.sql, and then up.sql again, useful for making sure
migrations work correctly, and for experimenting.

`scripts/dev-launch.sh` can be used to launch the API with correct
environment variables.

## Misc Notes
### Generate new migrations
`~/.cargo/bin/diesel migration generate migration_name`