---
title: "Deploy NOFX"
description: "AI trading terminal for stocks, forex, crypto, and commodities."
category: "AI/ML"
url: https://railway.com/deploy/nofx-1
---

# Deploy NOFX

AI trading terminal for stocks, forex, crypto, and commodities.

**[Deploy NOFX on Railway](https://railway.com/template/nofx-1)**

- **Creator:** Tasha
- **Category:** AI/ML
- **Total deploys:** 2

## Template content

### nofx-railway-template

- **Source:** Amritasha/nofx-railway-template
- **Public domain:** Yes

## Documentation

# Deploy and Host NOFX on Railway

**NOFX** is an open-source **AI trading terminal assistant** for US stocks, commodities, forex, and crypto. It combines a **Go backend** with a modern web frontend, offering **real-time market analysis**, **AI-powered trade insights**, and secure API key management — all self-hosted.

## About Hosting NOFX on Railway

Hosting NOFX involves running a single all-in-one container that bundles the Go backend and nginx-served frontend. The backend handles market data, AI inference, and user authentication, while nginx proxies the frontend and API on a single public port. NOFX uses **SQLite** by default for storage, requiring a **persistent volume** mounted at `/app/data` to survive redeployments. Encryption keys and JWT secrets are auto-generated at startup if not provided, making initial deployment straightforward with minimal configuration required.

## Common Use Cases for Self-Hosted NOFX

- **Personal AI-assisted trading dashboard** for monitoring US stocks, forex, and crypto
- **Self-hosted alternative to cloud trading terminals** with full data privacy
- **Backtesting and market analysis** with AI-generated trade signals

## Dependencies for NOFX Hosting

- Persistent volume mounted at `/app/data` for SQLite database storage
- `JWT_SECRET` environment variable (minimum 32 characters)

### Deployment Dependencies

- [NOFX Source Repository](https://github.com/NoFxAiOS/nofx)
- [NOFX Backend Image](https://ghcr.io/nofxaios/nofx/nofx-backend:latest)
- [NOFX Frontend Image](https://ghcr.io/nofxaios/nofx/nofx-frontend:latest)

### Implementation Details

The container runs nginx on Railway's `PORT` (default `8080`) and proxies `/api/` requests to the Go backend on internal port `8081`. RSA and AES-256 encryption keys are auto-generated at container startup if not set via environment variables.

\`\`\`sh
# Generate a secure JWT_SECRET
openssl rand -base64 32
\`\`\`

## Why Deploy NOFX 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 NOFX 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

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/nofx-1
