Darwin is a webbased multiplayer survival game written in TypeScript which can be controlled using code.
The report is written in LaTeX and is located in /report
.
The backend is Node.js based and is located in /game-backend
.
The frontend uses React and is located in /game-frontend
.
- Node.js 12.x
- git
- gcc & python (required for setting up V8 isolates)
npm run install-app
npm run watch
Make sure to run the configured git hooks which apply consistent code formatting.
For the root, the backend and the frontend folder scripts exist to help development.
Root
install-app
- installs packages in root, frontend and backend.watch
- builds, runs frontend and backend and restarts jobs on file changebuild
- builds frontend and backendstart
- starts previously built frontend and backendtest
- runs all tests, including coverage, in frontend and backendprettier
- checks frontend and backend for formatting errorsprettier:fix
- checks frontend and backend for formatting errors and fixes themlint
- lints frontend and backend code
The frontend and backend folders, provide the same scripts as the root folder does. To run a script only for the frontend/backend use npm run scriptname-[be/fe]
like npm run build-fe
to run a frontend build.