Skip to content

Commit e847f41

Browse files
authored
Merge pull request panates#35 from jacobdr/contributing-docs-and-formatting
Prepare for formatting application + minor docs updates
2 parents 289c40c + a514ad5 commit e847f41

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Developer Documentation
2+
3+
## Tests
4+
5+
### Run the test suite
6+
7+
1. You must spin up a postgres database on your local machine that allows for trusted (i.e. passwordless) authentication. The database should be running on localhost at port `5432` (the standard postgres port).
8+
9+
You may choose to (but not are not required to) use docker for this purpose by running the below.
10+
11+
```bash
12+
docker compose up
13+
# or this to run in the background
14+
docker compose up --detach
15+
```
16+
17+
2. Execute the test suite with: `npm test`

docker-compose.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
postgres:
3+
image: postgres:16.2-alpine3.19
4+
ports:
5+
- '5432:5432'
6+
volumes:
7+
- postgres-data:/var/lib/postgresql/data
8+
environment:
9+
POSTGRES_USER: postgres
10+
POSTGRES_PASSWORD: password
11+
POSTGRES_HOST_AUTH_METHOD: 'trust'
12+
POSTGRES_DB: postgres
13+
14+
volumes:
15+
postgres-data: {}

0 commit comments

Comments
 (0)