This document will help you setting up this project on your machine for development. If you just want to use dungeon-revealer we recommend using the docker images or prebuilt binaries. See the release section for more information.
Make sure you have the following software installed:
- Node.js 18 (verify with
node --version
) - npm 7 (verify with
npm --version
)
These are the most important commands for getting the dev server up and running.
npm install
npm run build
npm run start
The server and frontend will be reloaded/restarted once the code has been modified.
Run the backend server:
npm run start:server:dev
Run the react development server:
npm run start:frontend:dev
visit http://localhost:4000
We use caxa for bundling the built project as a binary. The built binaries can be found in the bin
folder.
npm run compile
npm run compile:win
The executables are located in the bin folder.
We are currently in the process of migrating the code base to TypeScript.
All new files under src
and server
should be written in TypeScript.
All new features should be built using TypeScript.
Existing features can be ported over to TypeScript by adding changing the file extension from .js
to .ts
/.tsx
.
In case you want to help porting features over to TypeScript, feel free to open an issue or pull request.