Skip to content

Commit 1e4b0dd

Browse files
committed
update README.md
1 parent 04448d3 commit 1e4b0dd

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
# rust crud api
22

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)
44

5-
## prerequesitse
5+
## prerequesites
66

77
- docker
88
- rust
99

1010

11-
## usage
11+
## build
1212

1313
```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
1419

20+
```sh
21+
docker compose -f docker-compose.yaml exec db psql -U postgres # connect to db
1522
```
1623

1724
## 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)

0 commit comments

Comments
 (0)