Start here if you’re new to the repo or to Railnode.
- Getting started
- Models + automatic CRUD routes
- Manual routes (route loader)
- Database adapters (switching storage)
- Backend configuration
- CLI reference
- Troubleshooting
Railnode boots an Express app and then:
- Loads model modules from
modelsDir(defaults todist/modelsthensrc/models). - (Optional) Generates CRUD routes for every registered model.
- Loads route modules from
routesDir(defaults todist/routesthensrc/routes).
Model files register themselves at import-time via defineModel(...). Route files are auto-mounted when they export both basePath and a default express.Router.