zpoint

Crates.iozpoint
lib.rszpoint
version0.0.1
sourcesrc
created_at2023-01-31 03:30:17.201336
updated_at2023-01-31 03:30:17.201336
descriptionzPoint server
homepage
repository
max_upload_size
id772339
size15,255
Arniu Tseng (arniu)

documentation

README

README

Development

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

SQLx migration

Add new migration:

sqlx migrate add <name>

Generate sqlx-data.json:

cargo sqlx prepare -- --lib
Commit count: 0

cargo fmt