This section guides you through the steps required to set up your computer for developing WATcher.
Prerequisites:
node -v
in your OS terminal to check the version of Node on your computer)Recommended:
Steps:
npm install
npm run ng:serve:web
.Given below are different commands you can use to run the app locally.
Command | Description |
---|---|
npm run ng:serve:web | Start the app from the browser in development mode. |
npm start | Start the app from Electron in development mode. |
Note that our development focus is mainly on Web-version and Electron is served as a backup plan when web version fails. You are encouraged to start working with Web version as a beginner first.
If you are using Visual Studio Code to debug WATcher with Chrome, Firefox or Edge.
Refer to the Debugging Angular
section of this guide for a step-by-step walkthrough of the debugger setup.
In summary, the following steps are needed:
Debugger for Chrome
extension for VS Code. You can also install debugger extensions for Firefox and Edge.launch.json
) as shown in the guide. Particularly, set the url
attribute to http://localhost:4200
(reason: WATcher app is served locally on port 4200, by default.)npm run ng:serve:web
.WATcher documentation is hosted in a separate repo CATcher-org/WATcher-doc. When you need to update documentation, you'll need to fork and clone that repo to your computer as well.
We use MarkBind for documentation. Follow this tutorial to learn how to use MarkBind for updating project documentation.