Crates.io | zpoint |
lib.rs | zpoint |
version | 0.0.1 |
source | src |
created_at | 2023-01-31 03:30:17.201336 |
updated_at | 2023-01-31 03:30:17.201336 |
description | zPoint server |
homepage | |
repository | |
max_upload_size | |
id | 772339 |
size | 15,255 |
Setup database:
docker-compose -f docker-compose.yml up -d
Run migrations:
sqlx migrate run
And then run the server:
cargo run
Or run it with docker:
# Setup services with multiple compose files, see:
#
# https://docs.docker.com/compose/extends/
#
docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build
# Or just the following:
docker-compose up --build
Add new migration:
sqlx migrate add <name>
Generate sqlx-data.json
:
cargo sqlx prepare -- --lib