Skip to content

Commit e41bde9

Browse files
Merge pull request #15 from TheRealDarkCoder/chore/contributingmd/initial-doc
Chore/contributingmd/initial doc
2 parents 1518cd1 + d8f42f0 commit e41bde9

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Contributing to Routis
2+
3+
## Prerequisites
4+
5+
- Docker + Docker Compose plugin
6+
- Node.js 22+
7+
- Python 3.13+ with [uv](https://docs.astral.sh/uv/getting-started/installation/)
8+
- Git
9+
10+
## Local setup
11+
12+
```bash
13+
git clone git@github.com:TheRealDarkCoder/routis.git
14+
cd routis
15+
cp .env.example .env
16+
docker compose up
17+
```
18+
19+
| Service | URL |
20+
|----------|------------------------------|
21+
| Web | http://localhost:3000 |
22+
| API | http://localhost:8000 |
23+
| API docs | http://localhost:8000/docs |
24+
25+
**Run API tests:**
26+
```bash
27+
docker compose exec api uv run pytest
28+
```
29+
30+
**Regenerate the TypeScript API client** after any backend route or schema change (from root folder):
31+
```bash
32+
npm run codegen
33+
```
34+
Commit the generated output — CI will catch drift if you forget.
35+
36+
## Picking up an issue
37+
38+
- Issues labelled `difficulty/starter` are a good entry point
39+
- Leave a comment on the issue before starting so we don't duplicate work
40+
- If you have a question, ask it on the issue — not in a private message
41+
42+
## Opening a pull request
43+
44+
Branch naming: `feat/M1/short-description`, `fix/M0/short-description`, `chore/short-description`
45+
46+
```bash
47+
git checkout develop
48+
git pull
49+
git checkout -b feat/M1/your-feature
50+
```
51+
52+
Open your PR against `develop`, not `main`. Fill in the [PR template](/.github/pull_request_template.md) — the checklist is short. A maintainer will review within a few days.
53+
54+
`main` is the production branch. It only receives merges from `develop` via maintainers.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Anonymous course review platform for the University of Oulu. Students can submit
1212

1313
## Getting Started
1414

15+
Read [Contributing Guidelines](CONTRIBUTING.md)
16+
1517
```bash
1618
cp .env.example .env
1719
docker compose up

0 commit comments

Comments
 (0)