---
title: "Deploy ExpressJS"
description: "An ExpressJS app using the Pug view engine connected to a Postgres database"
category: "Starters"
url: https://railway.com/deploy/BC51z6
---

# Deploy ExpressJS

An ExpressJS app using the Pug view engine connected to a Postgres database

**[Deploy ExpressJS on Railway](https://railway.com/template/BC51z6)**

- **Creator:** Odogwu Machalla's Projects
- **Category:** Starters
- **Total deploys:** 500

## Template content

### Express https://devicons.railway.app/i/javascript.svg

- **Source:** https://github.com/unicodeveloper/deploy-express-on-railway
- **Public domain:** Yes

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

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

## Documentation

# ExpressJS Example

This example starts an [ExpressJS](https://expressjs.com/) server using a Pug view engine connected to a Postgres database.

## ✨ Features

- Express
- JavaScript
- Pug
- Database

## 💁‍♀️ How to use

- Install dependencies `npm install`
- Connect to your Railway project `railway link`
- Start the server `railway run npm start`

## 📝 Notes

The server started returns a timestamp from the database via a page using the Pug view engine.

## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/BC51z6
