NixiN Farm Loco POC
nixin_farm_ssr | ||
.gitignore | ||
LICENSE | ||
README.md | ||
rust-toolchain.toml | ||
shell.nix |
nixin-farm
NixiN Farm Loco POC
Dev environment
Install Rust
If you are on NixOS, there is a shell.nix at the root of the project. You just have to run nix-shell
to get a rust environment
Otherwize, go to https://www.rust-lang.org/tools/install for instructions to install Rust
You will also need open ssl development library (apt install libssl-dev
on debian/ubuntu)
Install Loco
$ cargo install loco-cli
$ cargo install sea-orm-cli
Update loco
Use cargo interactive-update
to update all dependencies. Do not forget to also do it inside the migration sub folder
$ cargo install cargo-interactive-update
$ cargo interactive-update
$ cd migration
$ cargo interactive-update
Test / Debug
To register a user from the command line :
curl --location 'localhost:5150/api/auth/register'
--header 'Content-Type: application/json'
--data-raw '{
"name": "test",
"email": "test@nixin.local",
"password": "Test"
}'
To test user login from the command line :
curl --location 'localhost:5150/api/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "test@nixin.local",
"password": "Test"
}'