-
Notifications
You must be signed in to change notification settings - Fork 1
Dev Setup
-
nodejs
If you have already installed node version 12.13.1, ignore it
download node and install
-
code editor
visual studio code (current version)
to install visual studio code click here
To contribute for this project you need to do the following things.
- clone the repository
git clone https://github.com/step-batch-7/runtimeTerror-risk.git
- install dependencies
npm install
-
Dependancies
eslint - developer dependancy for standardising code. Rules are preset in
.eslintrc.jsonand lint check can be done by runningnpx eslint <filePath>mocha - developer dependancy for unit tests as a testing framework
supertest - developer dependancy for server test
nodemon - developer dependancy for running the server code.
express - server side dependancy
cookie-parser - parses cookies
moment - time formatting
redis - dependancy for persisting data
public directory for files those are directly available to the user
test directory for test related code
src directory for source files those are responsible for back-end.
scripts directory for dev setup, there are git hook; make sure you run this script when you have cloned the repository.
chmod +x scripts/gitHooks.sh
./scripts/gitHooks.sh