Build status:
dev |
master |
---|---|
Dråpen i Havet/A Drop in the Ocean is a volunteer organization. If you want to contribute, take a look at the issues or contact the head of the organization Trude, at trude [@] drapenihavet [dot] no.
Want to contribute? Do the following:
dev
-branch, naming it using our branch naming strategy described below.The project has a strategy for what to name our branches, so that changes in them are easily traceable to user stories and issues in our issue tracking system GitHub. Another reason for having a naming strategy is that it makes it easy to find distinct types of proposed changes, as well as what's being worked on.
Name your branches in the following way, where #num
is a task ID on GitHub:
feature/#num
.bugfix/#num
.tech/#num
.test/#num
.npm install
.npm run start:dev
.The project has implemented Redux DevTools in order to make development more convenient. Install the Chrome extension to use Redux DevTools.
We use redux devtools, you can toggle this toolbar with ctrl-h
.
On the webapp we have end-to-end tests with Selenium, but the tests are run in SauceLabs instead of locally, to ensure that they work the same for everyone. You want to register at their website, then add the environment variables SAUCE_USERNAME
and SAUCE_ACCESS_KEY
. locally. Then get started testing with:
npm install
npm test
to run testsThe results can be viewed in your account on Sauce Labs.
npm test
wil run both linter and end-to-end tests. You can run only end-to-end tests with npm run test:e2e
.
The idea is to organize the project in the following fashion:
commons
contains common components. If a component consists of multiple components, create a folder for it which contains all the needed parts. The main component is exported as index.jsx
.sections
is organized around the routes in the webapp, i.e. components associated with the admin
-routes is placed in sections/admin
. The main view for the route is in index.jsx
in the correspondig folder. Components used in that view, which are not common, is placed in the same folder.