- Ensure that
yarnornpmis installed. - Install the dependencies with
yarn installornpm install.
You can test the webapp via yarn test or npm run tests. It will run all tests and check the test coverage.
You can build the webapp via yarn build or npm run build.
- Enable cross origin in file
$HOME/ProjectForge/projectforge.properties:projectforge.web.development.enableCORSFilter=true - Start ProjectForge. See ProjectForge ReadMe
- Start web server with hot-code-replacement:
- Run
yarn startornpm startin terminal. - Open browser (if not started automatically) on yarn/npm port (default is 3000).
- Run
Now you can modify the Web files directly in the directory projectforge-webapp and
any change is automatically deployed instantly for your web browser.
If you want to disable the browser auto startup create an .env file with BROWSER=none. Don't commit this file!
ProjectForge uses linting:
- Preferences -> JavaScript -> JavaScript language version -> React JSX
- Preferecses -> JavaScrpt -> Code Quality Tools -> ESLint -> Automatic ESLint configuration