Deploy NOFX
AI trading terminal for stocks, forex, crypto, and commodities.
nofx-railway-template
Just deployed
/app/data
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
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
- 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/datafor SQLite database storage JWT_SECRETenvironment variable (minimum 32 characters)
Deployment Dependencies
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.
# 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.
Template Content
nofx-railway-template
Amritasha/nofx-railway-templateJWT_SECRET
Enter JWT SECRET
