Railway

Deploy keen-cool

Deploy and Host keen-cool with Railway

Deploy keen-cool

MongoDB

mongo:8.0

Just deployed

/data/db

reselling_dashboard

vances25/reselling_dashboard

Just deployed

Here's a filled-out example for your reselling dashboard:


Deploy and Host reselling-dashboard on Railway

A two-user eBay reselling order management dashboard built with Next.js 14 and MongoDB. Track inventory from sourcing to sold, calculate profit automatically, and view combined or individual analytics across both users.

About Hosting reselling-dashboard

Hosting the reselling dashboard on Railway involves running two services: a Next.js 14 App Router application and a MongoDB 8.0 database. The app handles authentication via NextAuth.js with JWT sessions, serves a REST API for order management, and connects to MongoDB for persistent storage. Railway links the two services privately so the database is never exposed to the public internet. Environment variables for the database credentials and NextAuth secret are injected at runtime.

Common Use Cases

  • Tracking sourced, listed, and sold items across eBay and other resale platforms
  • Calculating profit per item after fees, shipping, and sourcing costs
  • Comparing sales performance between two resellers sharing the same account

Dependencies for reselling-dashboard Hosting

  • MongoDB 8.0 (included as a Railway service)
  • Node.js 18+
  • NextAuth.js for session management

Deployment Dependencies

Implementation Details

Set the following environment variables on the app service. The ${{...}} syntax references the MongoDB service's variables automatically:

MONGODB_URI=mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017/reselling?authSource=admin
NEXTAUTH_SECRET=your-random-secret-here
NEXTAUTH_URL=https://your-app.up.railway.app

After first deploy, run the seed script to create the two user accounts and sample data:

railway run npx ts-node scripts/seed.ts

Why Deploy reselling-dashboard 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 reselling-dashboard 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

MongoDB

mongo:8.0

reselling_dashboard

vances25/reselling_dashboard

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser