- Install
NodeJS 8vianvmhttps://github.com/creationix/nvm - Install and setup
neo4jhttps://neo4j.com/download/neo4j-desktop/?edition=desktop&flavour=osx&release=1.0.6 - Install Yarn https://yarnpkg.com/lang/en/docs/install/
API
- Goto the
js/apiproject and runcp .env.sample .env - Update the environement variables in the file (add your own neo4j password from step 2)
NODE_ENV=development
SERVER_PORT=5000
FB_LOGIN_URL=https://graph.facebook.com/me?fields=email,name,first_name,last_name,picture&access_token&access_token
GOOGLE_LOGIN_URL=https://www.googleapis.com/plus/v1/people/me?access_token
DB_URL=bolt://localhost:7687
DB_USERNAME=neo4j
DB_PASSWORD=
SESSION_KEY=
JWT_SECRET=
JWT_LIFE_SPAN="7d"
yarn installyarn dev
UI
- Goto
js/uiand runcp .env.sample .envand paste the following env variable
NODE_ENV=development
GOOGLE_CLIENT_ID=
FB_CLIENT_ID=
API_URL=http://127.0.0.1:5000
PORT=3000
ACCESS_TOKEN_KEY=@cryptosis:access_token
USER_INFO=@cryptosis:user_info
yarn installyarn start:web- Open browser
http://localhost:3000