- Node.js >=14
- npm or Yarn
- PostgreSQL (or SQLite, see config)
- Clone repo
git clone https://github.com/REChain-Network-Solutions/PerpStats.git - Configure env
cp .env.example .envand set:NODE_URL=… DATABASE_URL=… - Install dependencies
npm install - Run migrations (if needed)
npm run migrate - Start in dev mode
npm run dev - Build & start
npm run build && npm start