-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
47 lines (41 loc) · 1.02 KB
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
47
vps-commands:
apt-get install docker
apt-get install docker-compose
dev:
docker-compose up -d
dev-down:
docker-compose down
migrate-up:
sqlx migrate run
migrate-down:
sqlx migrate revert
start-server:
cargo watch -q -c -w src/ -x run
install:
cargo add actix-web
cargo add actix-cors
cargo add serde_json
cargo add async-trait
cargo add serde -F derive
cargo add chrono -F serde
cargo add futures-util
cargo add env_logger
cargo add dotenv
cargo add uuid -F "serde v4"
cargo add sqlx -F "tls-native-tls runtime-async-std postgres chrono uuid"
cargo add jsonwebtoken
cargo add argon2
cargo add openssl-probe
cargo add validator -F derive
cargo add utoipa -F "chrono actix_extras"
cargo add utoipa-rapidoc -F actix-web
cargo add utoipa-redoc -F actix-web
cargo add utoipa-swagger-ui -F actix-web
# HotReload
cargo install cargo-watch
# SQLX-CLI
cargo install sqlx-cli --no-default-features --features postgres
# Deploy
sudo apt-get update
sudo apt-get install docker.io
sudo apt-get install docker-compose