Installation

Join the team?

How to write code

The application

The mobile app

We have a React Native app for Android written in ClojureScript: https://github.com/Trustroots/Trustroots-React-Native

Coding conventions

Most important

JS

CSS/LESS

CSS class names

Route conventions

TODO: Outdated

Convention is as follows:

Examples

Testing

Strategy:

CI setup

Slowly getting there. Any help/experiences appreciated! #228

Unit tests

…mainly to test Mongo models (example).

…as well some critical bits of Angular frontend (example).

Integration tests

… mainly for the API routes (example).

End-to-end tests with Selenium

We have a free Automate account with Browserstack (#199, blog) — this is offered to us for free since we’re an open source project. This makes it very easy for us to test the project on tons of different browsers on various platforms, including MSIE.

Written in Python, using Selenium (#225).

(Selenium tests are currently out of date.)

Run tests

Documentation

Documents our internal API end points. Great help for writing integration tests.

developers.trustroots.org/docs/api

Swagger editor file: swagger.json

More?

See developers.trustroots.org