Skip to main content

Contributors

Welcome! Railway is the volunteer registration front-end and admin for Oslo Røde Kors, packaged for UIS. This guide explains how to set up the project locally and how to contribute changes back.

Ways to Contribute

ContributionDescriptionStart here
Fix bugsResolve issues in the Next.js app or admin surfacesGetting Started, then open a PR
Add featuresBuild new pages, admin tools, or API integrationsRead Project Conventions first
Improve docsFix errors, add examples, clarify instructionsSee Documentation
File issuesReport bugs or suggest improvementsOpen an issue in the repo

Quick Start

# 1. Clone the repository
git clone <repo-url>
cd railway

# 2. Install dependencies
npm install

# 3. Configure environment
cp .env.example .env
# Edit .env and set POSTGREST_URL / POSTGREST_ANON_JWT

# 4. Run the dev server
npm run dev # http://localhost:3010

# 5. Sanity checks before committing
npm run lint
npm run build

Guides

Before You Submit a Pull Request

  • Run npm run lint and npm run build locally — both must pass
  • Keep changes scoped — separate refactors from feature work
  • For data access changes, re-read Project Conventions — this is a hard rule
  • Update or add docs under website/docs/ if behaviour changes