A Place for Civilised Knowledge
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Inderjit Gill 82ba0f3d4e crates upgrade 1 month ago
..
errors server -> civil-server, core -> civil-shared, wasm -> civil-wasm 3 months ago
src crates upgrade 1 month ago
.gitignore server -> civil-server, core -> civil-shared, wasm -> civil-wasm 3 months ago
Cargo.lock crates upgrade 1 month ago
Cargo.toml crates upgrade 1 month ago
README.md server -> civil-server, core -> civil-shared, wasm -> civil-wasm 3 months ago

README.md

Civil-Server

Usage

Rename the .env-example file to .env and update the Postgres details.

export the values of the .env file into a shell.

export $(egrep -v '^#' .env | xargs)

Create the postgres database.

createdb -U postgres $POSTGRES_DB

Load the database schema.

psql -d "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" -f ./db/schema.psql

Run.

cargo run