2023-11-14 16:43:49 -06:00
|
|
|
# Setup
|
2023-11-10 20:06:30 -06:00
|
|
|
|
2023-11-14 16:43:49 -06:00
|
|
|
```shell
|
|
|
|
$ direnv allow
|
2023-11-10 20:06:30 -06:00
|
|
|
```
|
2023-11-14 16:43:49 -06:00
|
|
|
|
|
|
|
# Running
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ cargo run
|
2023-11-10 20:06:30 -06:00
|
|
|
```
|
|
|
|
|
|
|
|
# Testing
|
|
|
|
|
2023-11-14 16:43:49 -06:00
|
|
|
```shell
|
2023-11-10 20:06:30 -06:00
|
|
|
cargo test
|
|
|
|
cargo run
|
|
|
|
hurl contract.hurl --variable base='http://localhost:3000' --verbose
|
|
|
|
```
|
2023-11-14 16:43:49 -06:00
|
|
|
|
|
|
|
# Regenerate Entities
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sea-orm-cli generate entity -u $DATABASE_URL -o src/entities
|
|
|
|
```
|