···99 // "features": {},
10101111 // Use 'forwardPorts' to make a list of ports inside the container available locally.
1212- "forwardPorts": [9078],
1212+ "forwardPorts": [9078,3000],
13131414 // Use 'postCreateCommand' to run commands after the container is created.
1515- //"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
1515+ "postCreateCommand": "npm install",
16161717 // Configure tool-specific properties.
1818 "customizations": {
···2121 "hbenl.vscode-mocha-test-adapter",
2222 "dbaeumer.vscode-eslint"
2323 ]
2424+ }
2525+ },
2626+ "portsAttributes": {
2727+ "3000": {
2828+ "label": "Docusaurus"
2929+ },
3030+ "9078": {
3131+ "label": "App"
2432 }
2533 }
2634
+10-3
docsite/docs/development/dev-common.md
···14141515## Project Setup
16161717-Development requires [Node v18.19.1](https://nodejs.org/en) or higher is installed on your system. It is recommended to use [nvm](https://github.com/nvm-sh/nvm) to manage the installed node version.
1717+Development requires [Node v18.19.1](https://nodejs.org/en) or higher is installed on your system.
1818+1919+:::tip
2020+2121+When running locally (not with a devcontainer) you can use [nvm](https://github.com/nvm-sh/nvm) to manage the installed node version.
2222+2323+:::
18241925Clone this repository somewhere and then install from the working directory
20262127```shell
2228git clone https://github.com/FoxxMD/multi-scrobbler.git .
2329cd multi-scrobbler
2424-nvm use # optional, to set correct Node version
3030+nvm use # optional, sets correct node version when running without devcontainer
2531npm install
2632npm run start
2733```
···32383339* Run/Debug [Launch configurations](https://code.visualstudio.com/Docs/editor/debugging#_launch-configurations) for the application and tests
3440* [Devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) for development with all dependencies already installed
4141+* Useful extensions for linting and running tests
35423636-To use the Devcontainer simple open the repository in VSCode and "Use Devcontainer" when the notification is presented. You will still need to run `nvm use` and `npm install` the first time it is used.
4343+To use the Devcontainer simple open the repository in VSCode and "Use Devcontainer" when the notification is presented. `npm install` will be run when a new container is created.
37443845## Common Development
3946