TODO
TODO
- Actix
- SeaORM
- Node js & npm
- sea-orm-cli
To watch change in your code, run npx nodemon --watch src -e rs --exec cargo run
.
- Initialisation
sea-orm-cli migrate init
Generate the folder migration. Remove todo() and uncomment lastlines in migration/Cargo.toml
- Run the migrations
sea-orm-cli migrate up
- Writting migration
sea-orm-cli migrate generate {NAME_OF_MIGRATION}
No need to write Entities !!! they are autogenerated by the migrations.
To skip serialization : #[serde(skip_deserializing)]
sea-orm-cli generate entity -o entity/src