---
title: "Deploy Calendso (cal.com) on Railway"
description: "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."
url: "https://swe.quest/articles/deploy-calendso-cal-com-on-railway-ee1611f7caef5124"
canonical: "https://blog.railway.com/p/calendso"
source: "Railway"
published: "2021-05-21"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["deployment","identity-auth","postgres"]
---

# Deploy Calendso (cal.com) on Railway

A post on [Railway](https://swe.quest/sources/railway.md), published 2021-05-21, 5 min read, How-to. Original: [https://blog.railway.com/p/calendso](https://blog.railway.com/p/calendso)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- OAuth 2.0 basics ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- Environment variables
- Node.js apps ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Railway, Calendso, cal.com, Google Calendar API, Prisma, NextAuth, PostgreSQL

## Related posts

- [Deploy Authorizer on Railway](https://swe.quest/articles/deploy-authorizer-on-railway-6b6e28c962bd461a.md): Railway · 2022-01-28 · Medium · 3 min read · Identity & auth, React, Deployment
  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.
- [Deploy a Dart App on Railway, Part 1](https://swe.quest/articles/deploy-a-dart-app-on-railway-part-1-9c43a3141edcb7ac.md): Railway · 2024-12-13 · Medium · 7 min read · Deployment, Containers, Cloud platforms, PostgreSQL
  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.
- [Getting started with Ruby on Rails and Postgres on Supabase](https://swe.quest/articles/getting-started-with-ruby-on-rails-and-postgres-on-supabase-03d6ca4747754aea.md): Supabase · 2024-01-29 · Medium · 3 min read · Ruby, PostgreSQL, Deployment
  A Rails app can be wired to a Supabase-hosted Postgres database by scaffolding with \`rails new -d=postgresql\` and supplying the Supabase pooler connection URI through the \`DATABASE\_URL\` environment variable.
- [Using Github Actions with Railway](https://swe.quest/articles/using-github-actions-with-railway-5eb8da35bcdd7f7c.md): Railway · 2021-06-04 · Medium · 2 min read · CI/CD, Deployment
  Railway deployments can be driven from GitHub Actions instead of the built-in branch-push trigger by creating a project token, storing it as a repository secret (RAILWAY\_TOKEN), and running \`railway up --service=\<id\>\` inside the official Railway CLI container.
- [Building a SaaS application on Railway](https://swe.quest/articles/building-a-saas-application-on-railway-c33704a725fc6e9e.md): Railway · 2024-12-13 · Medium · 12 min read · React, PostgreSQL, Deployment, TypeScript, Identity & auth
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
