The Rust Actix_Web Boilerplate is a boilerplate for developers who want to get started with Actix_web's web applications faster.
- cargo
- rustup
- libpq-dev
- start postgrsql server
- rename .env.sample to .env
- rename config/app.sample.yml config/app.yml
- change value of DATABASE_URL in .env
- run below commands
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"
rustup component add rls rust-analysis rust-src
cargo install cargo-edit
sudo apt install libpq-dev -y # Ubuntu
cargo install diesel_cli --no-default-features --features postgres
diesel setup
cargo run
- Mold
- install
sudo apt-get update -y; sudo apt-get install -y build-essential git clang cmake libstdc++-10-dev libssl-dev libxxhash-dev zlib1g-dev cd /tmp/ git clone https://github.com/rui314/mold.git cd mold git checkout v1.0.1 make -j$(nproc) sudo make install
- update config.toml
[target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=/path/to/mold"]
- install
$ ./action.sh
on Ubuntu
apt-get update -y
apt-get install -y libssl-dev
apt-get install -y pkg-config
- Session store to Redis
- OIDC login
- CSRF prevention
- Background Job
- Scaffold tool ( like rails generate )
- file serve