---
title: "Deploy 🦖 Deno 2 & Deno KV"
description: "Deploy and Host 🦖 Deno 2 & Deno KV with Railway"
category: "Starters"
url: https://railway.com/deploy/deno-2-starter
---

# Deploy 🦖 Deno 2 & Deno KV

Deploy and Host 🦖 Deno 2 & Deno KV with Railway

**[Deploy 🦖 Deno 2 & Deno KV on Railway](https://railway.com/template/deno-2-starter)**

- **Creator:** Eetezadi
- **Category:** Starters
- **Total deploys:** 4

## Template content

### Railway-DENO2-DENO_KV https://user.fm/files/v2-9f2769fcb1d1642ebb3891768b8dc20a/deno2.png

- **Source:** Eetezadi/Railway-DENO2-DENO_KV
- **Public domain:** Yes

## Documentation

# Deploy and Host 🦖 Deno 2 & Deno KV on Railway

A production-ready starter template showcasing Deno KV with a web interface. 
Since Railway's default runtime doesn't support Deno 2 yet, this template uses a custom Docker configuration to ensure full compatibility.

## About Hosting 🦖 Deno 2 Starter

Simple starter template with some example code for common use cases.

- 🌐 **Web Interface**: Simple HTTP server with HTML and JSON endpoints
- 🗄️ **Deno KV Storage**: Deno's built-in persistent key-value store based on SQLite in folder /db.
- 🚂 **Railway Ready**: Configured for deployment without dev files

## Common Use Cases
All apps profit from a modern JavaScript runtime with a built-in database and tooling. Deno KV is especially valuable for token, sessions, and other small data, but can work equally well for any document store.

### How to start using the source code
To start making changes to the source code you need to eject the template to use it on your own GitHub repository:

 1. In the service settings, under Source, find the Upstream Repo setting
 2. Click the Eject button
 3. Select the appropriate GitHub organization to create the new repository
4. Click Eject service


## Dependencies for 🦖 Deno 2 Starter Hosting
- Deno 2.x Runtime

### Deployment Dependencies
- Deno version can be set via Railway variables

### Implementation Details 
The template is configured for persistent data storage using volumes (Railway deploys on `/app`).

It also contains a .dockerignore file to exclude files not needed on production.

The GitHub devcontainer is pre-configured for CodeSpaces.

## Why Deploy 🦖 Deno 2 & Deno KV on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying 🦖 Deno 2 & Deno KV on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## 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/deno-2-starter
