Source Code Setup
Deploying RetailCoder on your own infrastructure.
This guide is for Enterprise License holders only.
Tech Stack#
- Frontend/API: Next.js 14 (App Router)
- Database: PostgreSQL 15+
- ORM: Prisma
- Queue: Redis (BullMQ)
- Styling: Tailwind CSS
1. Local Development#
Ensure you have Node.js 18+ and Docker installed.
bash
# 1. Install dependencies npm install # 2. Spin up local DB and Redis docker-compose up -d # 3. Generate Prisma client npx prisma generate # 4. Push schema to DB npx prisma db push # 5. Start dev server npm run dev
2. Production Build#
Do not use `npm run dev` in production.
bash
npm run build npm start
PM2 Recommendation
We recommend using PM2 to keep the Node process alive on Linux servers.
pm2 start npm --name "oms" -- start