Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 694 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 694 Bytes

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