CodeTanzania / open311-web-public

Public website for https://github.com/CodeTanzania/open311-api
2 stars 4 forks source link
311 codetanzania leaflet leafletjs open311 react react-native tanzania

open311-web-public

Dawasco public website for open311 issues

Project Structure

.
├── README.md
├── config
│   ├── jest
│   │   ├── fileMock.js
│   │   └── fileTransform.js
│   ├── webpack.config.dev.js
│   └── webpack.config.prod.js
├── development.js
├── package.json
├── production.js
├── public
├── src
│   ├── index.js
│   ├── setupTests.js
│   ├── components
└── package-lock.json

Usage

First install all the dependencies for development

npm install && bower install

Launch application in development mode

npm run dev

Testing Application

npm run test

Note
Leaflet Map Testing is limited as of this writing, leaflet does not natively support headless browser and it keeps giving out window is not defined error. Refer to https://github.com/PaulLeCam/react-leaflet/issues/69 and https://github.com/PaulLeCam/react-leaflet/issues/45

Build application

npm run build

Run application

npm run start

Extras

  • Best fix of npm run.lock merge conflict
    $ git checkout <previous commit> -- npm run.lock
    $ npm run install