-
Notifications
You must be signed in to change notification settings - Fork 2
Setting up the development environment
dominikglandorf edited this page Dec 9, 2017
·
14 revisions
- Installation
- Install Git (https://git-scm.com/download/)
- (On Windows)Use the option: Use Git from windows command prompt (Needed for bower)
- Install Node (https://nodejs.org/en/download/)
- Clone the repository to your local machine
- Run following commands on your root repository folder.
- "npm install" (installs all npm dependencies)
- "npm install grunt-cli -g" (installs the grunt cli)
- Get a config file from another BreakOut frontend developer.
- Happy Coding!
- Run "grunt" before your commit/ use "grunt watch" during development for instant build after save
- If throws an sass error, try "npm rebuild node-sass"
- Set the environment variable
NODE_ENVIRONMENT
toENVNAME
withconfig-ENVNAME.json
as config file. - Run "npm start".
- Navigate to http://localhost:3000.
- Set these environment variables:
REACT_CLIENT_ID=client_app
REACT_CLIENT_SECRET=123456789
REACT_BASEURL=localhost:8082
- Edit the config-xxx.json:
- Set
api.clientId
andapi.clientSecret
to the corresponding values in the DB-Schemaoauth_client_details
.
npm is used for ther node server and the build process bower is used for the website as it is a flat dependency package manager.