-
Download and install Node.js from (https://nodejs.org/en/download). You may need admin privileges to install this, so please call or raise a service desk ticket if necessary.
-
Download and install Visual Studio Code from (https://code.visualstudio.com/download). Again, you may need admin privileges to install this, so please call or raise a service desk ticket if necessary.
-
Install the ESLint and Jest Runner extensions in Visual Studio Code.
-
In the project root, create a
.env
file for project settings. You can start with the settings below, or copyenv.sample.txt
and rename it to.env
.PORT=5000 HOST=localhost
-
Navigate to the project path and run
npm install
.
To start the project, use the command npm run start
.
For development, use npm run dev
. You can then browse the application at http://localhost:4000/checker/home.
To run tests, use npm test -- checkerMainService.test.js
. Please replace checkerMainService.test.js
with the path to your specific test file.
For test coverage, use npm run test:coverage
.
The current project structure is as follows:
Current Project structure
nipts-pts-checker-web-ui/ ├──src ├── api/ To call backend ├── public/assets/ For css, javascripts ├── node_modules/ ├── helper/plugin.js --- Include all UI component here for web pages ├── web/ │ ├── component/checker/home --- UI components │ ├── views --- UI views for each component ├── package.json ├── server.js --- node js server to start
This project is using node js, happi framework & nunjuks as template engine