Skip to content

KrisPett/chaincue-real-estate-rust

Repository files navigation

Setup dev

  • sudo apt install libssl-dev
  • cargo run

.env

touch .env

DATABASE_URL=postgres://admin:admin@localhost:5432/chaincue-real-estate-db
#DATABASE_URL=postgres://admin:admin@chaincue-real-estate-postgres-rs/chaincue-real-estate-db

Disable warnings

export RUSTFLAGS=-Awarnings cargo check

Migrate

cargo install sea-orm-cli
sea-orm-cli migrate init
sea-orm-cli migrate generate "camel_case"
sea-orm-cli migrate up -u postgres://admin:admin@localhost:5432/chaincue-real-estate-db
sea-orm-cli generate entity --with-serde both -u postgres://admin:admin@localhost:5432/chaincue-real-estate-db -o entity/src

About

Real Estate backend written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages