Main elements are:
- pnpm - efficient packet manager
- nodemon - restart your app when code changes
- eslint and prettier - for code formatting and keeping style uniform
- husky - pre-commit hooks with auto fixing and formating
NOTE: pnpm and npm can be used interchangeably.
- Clone the repo:
git clone --recursive git@github.com:AlexRazor1337/od-server.git
- Install deps:
npm i
2. Install husky:npm run prepare
- Fill the
.env
file:NODE_ENV=development ADMIN_PORT=8001 ADMIN_PASSWORD=testtest PORT=3000 CORS_ORIGIN=localhost:3000
- Run server in development mode:
npm run dev
- Now you can open the game in the browser via
localhost:3000
To skip login, uselocalhost:3000/?dev