28 lines
452 B
Markdown
28 lines
452 B
Markdown
# Locality
|
|
|
|
The [dev](./dev) script starts a Docker image for the Postgres server,
|
|
runs `cargo run` or `cargo test`, and then removes the created Docker
|
|
container.
|
|
|
|
Docker must be set up to run rootless for this script to work.
|
|
|
|
The script is able to install it's own dependencies into a Python
|
|
virtual environment:
|
|
|
|
```sh
|
|
# Install
|
|
./dev devupdate
|
|
```
|
|
|
|
Build and run the server locally:
|
|
|
|
```sh
|
|
./dev run
|
|
```
|
|
|
|
Run unit tests:
|
|
|
|
```sh
|
|
./dev unittest
|
|
```
|