Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Railway 3 min read How-to mediumAdept

Deploy Authorizer on Railway

Authorizer, an open-source self-hosted alternative to Auth0, can be deployed on Railway with a one-click template that provisions PostgreSQL and Redis automatically and wires up DATABASE_URL and REDIS_URL. Deployment needs only ADMIN_SECRET and JWT_SECRET, plus OAuth client credentials if social logins are wanted. A React integration follows: install @authorizerdev/authorizer-react, wrap the app in AuthorizerProvider pointed at the Railway endpoint, and use the Authorizer component and useAuthorizer hook for login flows and user state.

Assumes: React basicsenvironment variables

Related posts

  • Building a SaaS application on Railway

    Railway mediumAdept

    A step-by-step tutorial for building a job board SaaS MVP with Remix, PostgreSQL via Drizzle ORM, Clerk authentication and shadcn/ui, then deploying it to Railway. It covers the data model, routes for job seekers and hiring managers, resume uploads stored on disk, and a resource route for downloads. Deployment steps include a custom start command that runs migrations, attaching a persistent volume for resumes, provisioning Postgres with reference variables, and fronting the app with a Cloudflare custom domain for DDoS protection and caching.

  • Deploy a Dart App on Railway, Part 1

    Railway mediumAdept

    A Flutter + Serverpod trivia app is deployed to Railway with a Railway-hosted PostgreSQL database, using the Railway CLI and a custom multi-stage Dockerfile that compiles the Dart server and bundles a Flutter web build into Serverpod's static webserver. Database credentials are wired in through Railway variable references, and migrations are applied in production mode. Because Railway exposes only one port per domain, a Caddy reverse proxy template routes traffic between Serverpod's API port (8080) and web port (8082). A curl request to the example hello endpoint confirms the deployment works.

  • The agent builds the app, the user claims the database: how Ideavo does it

    Neon easyNovice

    Ideavo, a bring-your-own-key AI app builder, has its agent provision a separate Neon Postgres project for every generated app through the Neon API. The connection string goes into the app's .env as DATABASE_URL, and the agent then sets up Drizzle and runs migrations without the credential ever entering the LLM context. Users can later take ownership of the database through Neon's claim/transfer flow while keeping the same connection string. The team chose Neon over Supabase's bundled services and over self-hosting a database fleet to avoid lock-in and keep operational load low for a small team.

  • Deploy Calendso (cal.com) on Railway

    Railway mediumAdept

    Self-hosting Calendso (now cal.com), the open-source Calendly alternative, on Railway takes a one-click template that provisions PostgreSQL plus a Google OAuth client whose JSON goes into the GOOGLE_API_CREDENTIALS variable. The walkthrough covers enabling the Google Calendar API, setting calendar scopes and redirect URIs, pushing the Prisma schema via `railway run`, and creating a user with a BCrypt-hashed password. Moving to production means changing NEXTAUTH_URL (no trailing slash) and the OAuth origins. Using a separate Railway environment keeps local development working, and pinning Node 14 fixes dependency failures.

  • Handling Auth in a Staging Environment

    Neon mediumAdept

    Neon Auth stores users, sessions and OAuth data in a neon_auth schema inside the Postgres database, so branching the database also branches auth state via copy-on-write. Each branch gets its own auth endpoint, which lets preview and staging environments test role, permission and OAuth changes against a copy of production users without touching production or creating test accounts by hand. Deleting the branch removes all copied users. It is built on Better Auth, used through the @neondatabase/neon-js SDK, and can be provisioned per PR with a GitHub Action that outputs the branch's auth URL.

The quest for software engineering knowledge.

Look:
Layout: