This template deploys a fully-functional Nhost stack on Railway. Nhost is an open source backend-as-a-service (BaaS) that includes:
- PostgreSQL Database
- Hasura GraphQL API
- Authentication & Authorization
- PostgreSQL: Main database
- Hasura: GraphQL API engine
- Hasura Auth: Authentication service
The following environment variables are required:
POSTGRES_PASSWORD
: Password for PostgreSQLPOSTGRES_DB
: Database name (defaults to "nhost")HASURA_GRAPHQL_ADMIN_SECRET
: Admin secret for HasuraHASURA_GRAPHQL_JWT_SECRET
: JWT secret for authenticationAUTH_CLIENT_URL
: URL of your frontend application
Optional email configuration:
AUTH_SMTP_HOST
: SMTP server hostAUTH_SMTP_PORT
: SMTP server port (default: 587)AUTH_SMTP_USER
: SMTP usernameAUTH_SMTP_PASS
: SMTP passwordAUTH_SMTP_SENDER
: Sender email address
- Click the Deploy on Railway button
- Set the required environment variables
- Deploy and wait for the build to complete
- Access your Hasura console at: https://your-url/console