The official wiki for Suroi, an open-source 2D battle royale game inspired by surviv.io.
Node.js 20+ and pnpm are required.
If you don't have pnpm installed, you can install it with the following command:
npm i -g pnpmIf you need to install a specific version of Node.js, you can use nvm to manage versions.
git clone https://github.com/HasangerGames/suroi-wiki.git
cd suroi-wikiThe repository uses git submodules to manage dependencies. Run the following commands to initialize and update the submodules:
git submodule init
# Do not use --remote as it does not respect the selected commit
git submodule updateInstall the required dependencies using pnpm:
pnpm installTo start a local development server, run:
git checkout dev
# This switches to the `dev` branch of the wiki with all the new changes
pnpm devThen, open https://127.0.0.1:3000 in your browser to view the wiki. You can have this open while you make changes as it will automatically update!
To build the wiki for production, run:
pnpm buildTo start the production server, use:
pnpm startIf you want to setup the wiki quickly, copy the following script and paste it into your terminal. Though it is highly recommended to go through all the steps so you understand how the wiki is running. This also assumes that you have all the packages installed.
git clone https://github.com/HasangerGames/suroi-wiki.git
cd suroi-wiki
git submodule init
git submodule update
pnpm install
pnpm dev