See the GloX blue note for the ideas.
GloX — Updated Setup Instructions
-
Prerequisites • Node.js ≥ 20 • pnpm ≥ 9 • PostgreSQL ≥ 14
-
Environment Configuration
Create a .env file at the project root with the following variables:
DATABASE_URL=postgresql://USER:PASSWORD@HOST:PORT/DB_NAME
VITE_FTML_SERVER_URL=https://mathhub.info
JWT_SECRET=replace_with_strong_random_secret
NODEMAILER_EMAIL_ID=your_email@example.com
NODEMAILER_EMAIL_PASSWORD=app_specific_password
APP_ORIGIN=http://localhost:3000
NODE_ENV=development- Dependency Installation
pnpm installThis installs: • React 19 + Vite 7 toolchain • TanStack Router / Query / Start stack • Prisma client and PostgreSQL adapter • FTML frontend and backend libraries • Mantine UI + Tailwind v4
- Database Setup (Prisma)
Generate client and apply schema:
pnpm prisma generate
pnpm prisma migrate dev- Development Server
pnpm dev• App runs at http://localhost:3000
• Vite dev server with HMR
- Production Build
pnpm build
pnpm preview- Testing
pnpm test