playnite-web-app • Docs
playnite-web-app / contributing/development-environment/local-environment
Install the following software on your local development machine:
- git
- Bash (this guide assumes a bash shell)
- vscode
- Docker (for Mongodb and MQTT dependencies)
- Node.js@>=22.10.0 (recommend using
nvm
to manage Node.js installations) - yarn@^4.0.0
- With Node.js installed, run
corepack enable && corepack prepare --activate yarn@^4.5.1 && yarn set version 4.5.1
- With Node.js installed, run
- Fork the playnite-web repo
- Clone your forked repo to your local development machine.
- Open the repo in vscode.
- Run
yarn
- Run
yarn nx run devenv:prepare
. This is only required for the first time working with the codebase. - Run
yarn run start
and navigate to http://localhost:3000- Note that MQTT and Mongo will be started via docker automatically.
- Mongo will restore a default database if no database already exists (if there are no files in
.data/mongodb
). - Note MQTT currently starts with no username/password configured.
- [Optional]: override environment variables when running locally via
cp apps/playnite-web/local.env apps/playnite-web/overrides.env
- REMEMBER: do not commit
overrides.env
or sensitive information inlocal.env
.
- REMEMBER: do not commit
- Continue to see commands for running tests.