- rust build nightly using rustup chain command.
a. install rust with this command (Unix like or linux)
b. install rust nightly (version this 1.71 rust nightly)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
c. set the rust nightly installation set to defaultrustup install nightly
d. install the crate by this commandrustup default nightly
or use this commandmake install
cargo add actix-web cargo add actix-cors cargo add serde_json cargo add serde --features derive cargo add chrono --features serde cargo add env_logger cargo add dotenv cargo add uuid --features "serde v4" cargo add sqlx --features "runtime-async-std-native-tls postgres chrono uuid" # HotReload cargo install cargo-watch # SQLX-CLI cargo install sqlx-cli
- make
.env
file on the root project folder - setup the env like database, etc.
- compile the web app
cargo build
- running the web app service
or prefer the release
cargo run
cargo run --release
-
Notifications
You must be signed in to change notification settings - Fork 0
belajar-rust/rust-actix-sample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published