-
Setup
cd frontend npm install npm run config-dev # Copies configurations npm run start # application should be started on localhost:3000 -
Cookie - Place cookie in session w/ localhost as domain
- Log into https://igodev.mskcc.org/login/
- Upon successful authentication, change
Domainof cookie fromigodev.mskcc.orgtolocalhost. This makes the cookie available in your local application. See image and guide below for more information about changing your cookie. NOTE - If the.envJWT_SECRETdoesn't match that of igo-dev, the cookie will be invalid) - Navigate back to
localhost:3000, which should now have the session cookie to make requests
In Chrome:
DevTools > Application > Storage:Cookies > Select Domain > Modify domain value of cookie w/ jic to localhost).

-
Configurations - Update
.envfile inapi/frontend(Not available in git repo - take from VMdlviigoweb1at/srv/www/node-sample-sub/.env) -
Update
JWT_SECRETfield of.envwith value located at/srv/www/pm2/ecosystem.config.js
/srv/www/pm2/ecosystem.config.js
...
const commonEnv = {
dev: {},
prod:
{
JWT_SECRET: 'DEV_COOKIE' <- 1) Take this value
}
}
...
/srv/www/node-sample-sub/.env
...
JWT_SECRET=DEV_COOKIE <- 2) Add ecosystem.config.js secret here
...
- Run
cd api
npm install
nvm install 12
nvm use 12
npm run start