This commit is contained in:
Douze Bé 2024-10-23 19:19:47 +02:00
parent 97ae3b6f83
commit b02ec2c371

View file

@ -4,8 +4,8 @@ This project is an experiment to evaluate the [loco-rs framework](https://loco.r
## Dev environment ## Dev environment
## Install Rust ## 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 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 Otherwise, 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) You will also need the open ssl development library (`apt install libssl-dev` on debian/ubuntu)
# Install Loco # Install Loco
```sh ```sh
@ -13,7 +13,7 @@ $ cargo install loco-cli
$ cargo install sea-orm-cli $ cargo install sea-orm-cli
``` ```
# Run a sub project for test/debug # Run a sub project for test/debug
change directory to the subproject and run it using `cargo loco start`. For exemple : change directory to one sub-project and run it using `cargo loco start`. For exemple :
```sh ```sh
$ cd nixin_farm_ssr $ cd nixin_farm_ssr
$ cargo loco start $ cargo loco start
@ -48,7 +48,7 @@ To update loco-rs Use `cargo interactive-update` to update all dependencies. Do
```sh ```sh
$ # install cargo-interactive-update if it is not already installed $ # install cargo-interactive-update if it is not already installed
$ cargo install cargo-interactive-update $ cargo install cargo-interactive-update
$ # then launch it (from a sub project directory) $ # then launch it (from a sub-project directory)
$ cargo interactive-update $ cargo interactive-update
$ # select all the available updates in the TUI and apply them $ # select all the available updates in the TUI and apply them
$ # then go to the migration sub folder and do the same $ # then go to the migration sub folder and do the same