Skip to content

How to develop TruthTree frontend

Steven Than edited this page Jan 31, 2019 · 8 revisions

Getting started

  1. Make sure you have node and npm installed. Tested with node 8 and above, npm 5 or above is reccommended
  2. Clone this repo git clone https://github.com/TruthTreeASD/frontend.git
  3. cd into the project and install dependencies cd frontend && npm i
  4. Run the project npm start
  5. Access in the browser using localhost:3000

Coding standards

  • There are pre-commit hooks in place that make sure your code is format correctly
  • Commit frequently for small changes with meaningful messages
  • Run npm run test before creating pull request
  • Pull from master if there are new pull requests that get merged
  • Addition of third-party libraries is encouraged, we don't need to reinvent the wheel; however, do consult with team because there might be other libraries with similar functionalities installed
  • Be mindful of responsive design, as we're catering to both mobile and desktop users, your frontend components should be functional on both

Clone this wiki locally