File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
# rust crud api
2
2
3
- following along with [ dev.to/francescoxx/rust-crud-rest-api-3n45] ( https://dev.to/francescoxx/rust-crud-rest-api-3n45 )
3
+ following along: [ dev.to/francescoxx/rust-crud-rest-api-3n45] ( https://dev.to/francescoxx/rust-crud-rest-api-3n45 )
4
4
5
- ## prerequesitse
5
+ ## prerequesites
6
6
7
7
- docker
8
8
- rust
9
9
10
10
11
- ## usage
11
+ ## build
12
12
13
13
``` sh
14
+ DB_URL=' postgres://postgres:postgres@db:5432/postgres' cargo build --release # build locally
15
+ docker compose -f docker-compose.yaml up -d # build via docker
16
+ ```
17
+
18
+ ## usage
14
19
20
+ ``` sh
21
+ docker compose -f docker-compose.yaml exec db psql -U postgres # connect to db
15
22
```
16
23
17
24
## see also
25
+
26
+ - [ doc.rust-lang.org/rust-by-example/flow_control/match] ( https://doc.rust-lang.org/rust-by-example/flow_control/match.html )
You can’t perform that action at this time.
0 commit comments