-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 744 Bytes
/
Makefile
File metadata and controls
36 lines (31 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
init-migrations:
sqlx migrate add -r "initial migration"
create-db:
sqlx database create
migrate-up:
sqlx migrate run
migrate-down:
sqlx migrate revert
start-server:
cargo watch -q -c -w src/ -x run
install-crates:
cargo add axum
cargo add axum-extra -F cookie
cargo add time
cargo add tokio -F full
cargo add tower-http -F "cors"
cargo add serde_json
cargo add serde -F derive
cargo add chrono -F serde
cargo add dotenv
cargo add uuid -F "serde v4"
cargo add sqlx -F "runtime-async-std-native-tls sqlite chrono uuid"
cargo add jsonwebtoken
cargo add argon2
cargo add rand
cargo add handlebars
cargo add lettre -F "tokio1, tokio1-native-tls"
# HotReload
cargo install cargo-watch
# SQLX-CLI
cargo install sqlx-cli