- Install dependencies:
pnpm install
- Setup database:
pnpm db
- Start dev server:
pnpm dev
We use PM2 for deployment.
pnpm build
pnpm start # Spawns a PM2 daemon named "polygen"
The HTTP server listens on port 1606 by default, which can be configured through environment variables.
It's strongly recommended to use your own .env.local
file for production:
cp .env .env.local
Before pushing your commits, be sure to run through all the checks:
pnpm build
pnpm lint
pnpm typecheck
pnpm test
pnpm bench
pnpm format
This project is licensed under the Unlicense.