Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 2.99 KB

README.md

File metadata and controls

85 lines (60 loc) · 2.99 KB

PerfNext Development Instructions

Setup

Prerequisites

  • Node Version: 6.10.3
  • System Dependencies: npm (comes packaged with Node)
> check npm has been installed correctly by running:
	>> npm -v
> check node has been installed correctly by running:
	>> node -v
> depending on your OS, you may need to run:
	>> sudo apt install npm
	>> sudo npm install -g n
	>> sudo n latest
	>> and add node bin location to your PATH

Passwords Requirements

All passwords used in PerfNext should be put inside the file "credentials.json" under the PerfNext directory on any machine hosting this application. This file is listed in .gitignore so that it does not get pushed to GIT since it contains sensitive information. This file should be updated whenever the required accounts' passwords are updated.

URLS

All custom server urls should be specified in PerfNext/config/APP_DATA.json The urls required are the following:

Steps

Execute the following commands after installing Node + npm and cloning the repository:

> cd PerfNext
> npm install
> node app.js

You should now be able to navigate to localhost:8888 from your web browser

Development Steps

  • Create feature branches off of master (until we have a staging branch): git checkout -b feature-branch-name origin/master
  • Git pull and rebase your feature branch onto master regularly to ensure freshness: git rebase master
  • Always git pull and rebase onto master prior to submitting a pull request.
  • When submitting a pull request to master, always squash and merge!

Production server

TBD

Deployment Instructions

  • If the change is in PerfNext, upload changed file under /data/testci/PerfNext in TBD.
    • You'll have to manually upload the files since Git version does not have modules.
  • Refer to the Password Requirement section above in order to configure the passwords file needed by PerfNext. It should already exist from before.
  • If new module is added, then run npm install on TBD.
  • You'll have to manually restart the service if you updated the back-end since only the front-end gets updated automatically and not the back-end.
  • You'll need to be added to the sudo list in order to restart the service.
service PerfNext restart
  • log message can be found by using the following cmd
tail -f /var/log/PerfNext.log