Rename the .env.example
file to .env
.
Create a migration file with(which means create a table in the database):
sea-orm-cli migrate up
If you don't have sea-orm-cli
installed, you can install it with:
cargo install sea-orm-cli
cargo run
Or for development you probably want to use cargo-watch
crate
cargo-watch -x run
if you don't have cargo-watch
installed, you can install it with:
cargo install cargo-watch