Either clone this repository or fork it on GitHub and clone your fork:
git clone [email protected]:iReflect/reflect-web.git
cd reflect-web
You need to install Node and then the development tools. Node comes with a package manager called npm for installing Node applications and libraries.
- Install node - https://docs.npmjs.com/getting-started/installing-node
Warning
Verify that you are running at least node 8.9.x and npm 5.x.x by running node -v and npm -v in a terminal window. Older versions might produce errors, but newer versions are fine.
- Install local dependencies (from the project root folder):
This will install the dependencies declared in the package.json file
cd reflect-web
npm install
- Create a file
src/environment/environment.ts
usingsrc/environment/environment.ts.sample
file if not present. You can then modify the configurations accordingly. - Create a file
assets/config/config.local.json
usingassets/config/config.json.sample
file in your local machine and put the environment specific information in this file.
Note: Make sure that this config file is present in the final build of the application (in the same
assets/config
folder, named according to the environment) for the application to work properly.
- Run
npm start
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
This app is made up of a number of Typescript, SCSS and HTML files that need to be merged into a final distribution for running. We can use the angular-cli tool to do this (or the npm script which is nothing but a wrapper for the angular-cli command).
- Build client application (for development server):
cd reflect-web npm run build
- Build client application (for production server):
cd reflect-web npm run prod-build
Run npm test
to execute the unit tests via Karma.
For more information, see ng test command.
Run npm e2e
to execute the end-to-end tests via Protractor.
For more information, see ng e2e command.
- Fork the repo under your Github account.
- Get the package:
git clone [email protected]:GITHUB_USERNAME/reflect-web.git
- Set your fork as a remote:
git remote add fork [email protected]:GITHUB_USERNAME/reflect-web.git
- File a ticket in our issue tracker iReflect-Kanban.
- Make changes, commit to your fork.
- Send a pull request with your changes.