Skip to content

jwcub/polygen

Repository files navigation

polygen

Polygon-based web game inspired by generals.io.

GitHub Actions License GitHub repo size GitHub Repo stars GitHub commit activity GitHub contributors Website

Prerequisites

Development

  • Install dependencies:
pnpm install
  • Setup database:
pnpm db
  • Start dev server:
pnpm dev

Deployment

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

Contributing

Before pushing your commits, be sure to run through all the checks:

pnpm build
pnpm lint
pnpm typecheck
pnpm test
pnpm bench
pnpm format

License

This project is licensed under the Unlicense.