DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

b8df2878f6b265a21ae80452d6e0800dccc42f34 — Jonni Liljamo 1 year, 10 months ago c96ed6d
feat(api): add dev-launch.sh script
2 files changed, 8 insertions(+), 0 deletions(-)

M api/README.md
A api/scripts/dev-launch.sh
M api/README.md => api/README.md +3 -0
@@ 14,6 14,9 @@ database that the other script sets up.
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`

A api/scripts/dev-launch.sh => api/scripts/dev-launch.sh +5 -0
@@ 0,0 1,5 @@
#!/bin/sh

export LAURELIN_DB_URL=postgres://laurelin:laurelin@localhost:5432/laurelin

cargo run