---
title: "Deploy Smart Marking"
description: "AI marking for scripts and Computing files, teacher-checked before release"
category: "AI/ML"
url: https://railway.com/deploy/smart-marking-1
---

# Deploy Smart Marking

AI marking for scripts and Computing files, teacher-checked before release

**[Deploy Smart Marking on Railway](https://railway.com/template/smart-marking-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/smart-marking-1/manifest.json

- **Creator:** Joe Tay's Projects
- **Category:** AI/ML
- **Total deploys:** 3

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### web https://raw.githubusercontent.com/twahidin/smart-marking-system/main/docs/railway-template/icon.png

- **Source:** twahidin/smart-marking-system
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Smart Marking on Railway

**📘 Smart Marking Setup Guide** — step by step with screenshots of the real app: [read online](https://claude.ai/artifact/Fu6LVAMCYYxg2fPb3oFsFw) · [download the PDF](https://github.com/twahidin/smart-marking-system/raw/main/docs/setup-guide/Smart-Marking-Setup-Guide.pdf) · [on GitHub](https://github.com/twahidin/smart-marking-system/blob/main/docs/setup-guide/README.md)

Smart Marking marks handwritten scripts that students photograph or scan, against **your** mark scheme (maths/science) or rubric (essays). An extractor reads the pages, a marker awards each allocation or band, and an independent reviewer checks it; anything illegible, out of scheme or disputed lands in a **Review** queue for the teacher, where every mark starts at the marker's proposal and only what you disagree with needs changing. Teachers watch the Reader, Marker and Checker work through a class set in the Marking Room and can read what each one noted; after release, students get a window to correct the parts they lost marks on, re-marked by the Marker and released by the teacher. Students hand in from their phone with a class code and register number; feedback is shown only after the teacher releases it. Computing classes can hand in Python, Scratch and Excel files (alone or with photos), marked by reading them — never running them; Mother Tongue scripts (Chinese, Malay, Tamil) get feedback in the script's language. Teachers can hand in a whole class at once: one zip matched by register number, or one combined PDF of scanned booklets, split at each cover and matched by the index number written there. Bring your own LLM key (TokenRouter, OpenRouter, OpenAI, Anthropic, Moonshot, Qwen or Google Gemini), with each provider's current models listed and a default model per subject.

## About Hosting Smart Marking

The template deploys two services: `web` (FastAPI + React, built from the Dockerfile, with the marking worker embedded) and `Postgres` (assignments, classes, marks and settings; API keys are encrypted at rest with the generated `SECRET_KEY`). Page images live on a volume mounted at `/data`; by default the full pages are deleted after marking and only each part's answer crop is kept, so storage stays small and every mark can still be checked against the student's writing. After the deploy finishes, open the `web` domain: the first visitor creates the teacher password on the website (step 1), then pastes a provider key and picks a model under **Settings** (step 2) — nothing to copy from the Railway dashboard. Later changes happen on the website; setting `TEACHER_PASSWORD` in Variables overrides the website password if you ever need to reset it. No student accounts or passwords are needed: students use the class link and their register number. Everything runs inside your Railway project; scripts never leave it except for the model calls you configure.

## Common Use Cases

- Marking a class set of maths or science worksheets against a mark scheme, with M1/A1/B1-style allocations and a teacher check on the doubtful parts
- Grading essays against a band rubric and giving students structured feedback (strengths, question by question, what to work on next)
- Letting students hand in photographed work from their phones and receiving marks and feedback once the teacher releases them
- Producing per-student `.docx` marking records and a marks CSV for moderation and departmental records
- Getting an Insights report — marks by part, an AI narrative, a PDF — as soon as a class set finishes marking
- Getting Telegram messages for hand-ins, marking finished and a daily digest, linked with a `/start` (no webhook to expose)
- Marking Computing work handed in as `.py`, `.sb3` or `.xlsx` files
- Uploading a whole class at once: one zip matched by register number, or one combined PDF of scanned booklets, matched by the index number on each cover
- Marking a pile of scripts against one saved assignment without a class (Mark many), with labels taken from the file names
- Marking Mother Tongue compositions with feedback written in Chinese, Malay or Tamil, and choosing a different model per subject

## Dependencies for Smart Marking Hosting

- An API key for one supported LLM provider with a vision-capable model (free options: OpenRouter `:free` models, Google Gemini's free tier)
- The bundled Postgres service and the `/data` volume (both created by this template)

### Deployment Dependencies

- Railway's Postgres template (`ghcr.io/railwayapp-templates/postgres-ssl`) — created for you
- A vision-capable model from any supported provider: https://github.com/twahidin/smart-marking-system#web-app

### Implementation Details

No variables need changing: the password is created on the website at first visit. Optional before deploying: `TEACHER_PASSWORD` (fixes the password from the dashboard instead), `LLM_PROVIDER` (default `tokenrouter`), `LLM_MODEL` / `LLM_API_KEY` to pre-seed the model and key. Source and documentation: https://github.com/twahidin/smart-marking-system — setup guide (PDF): https://github.com/twahidin/smart-marking-system/raw/main/docs/setup-guide/Smart-Marking-Setup-Guide.pdf

## Why Deploy Smart Marking on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Smart Marking on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/smart-marking-1
