https://github.com/codetanzania/open311-web-public
Public website for https://github.com/CodeTanzania/open311-api
https://github.com/codetanzania/open311-web-public
311 codetanzania leaflet leafletjs open311 react react-native tanzania
Last synced: 6 months ago
JSON representation
Public website for https://github.com/CodeTanzania/open311-api
- Host: GitHub
- URL: https://github.com/codetanzania/open311-web-public
- Owner: CodeTanzania
- Created: 2017-08-07T11:06:38.000Z (about 8 years ago)
- Default Branch: develop
- Last Pushed: 2018-06-26T04:35:01.000Z (over 7 years ago)
- Last Synced: 2025-03-31T16:13:46.754Z (7 months ago)
- Topics: 311, codetanzania, leaflet, leafletjs, open311, react, react-native, tanzania
- Language: JavaScript
- Homepage:
- Size: 5.13 MB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```- `development.js`
Server in dev environment
- `production.js`
Server in production environment
- `config/webpack.config.dev.js`
Webpack development configuration
- `config/webpack.config.prod.js`
Webpack production configuration## Usage
> **First install all the dependencies for development**
```sh
npm install && bower install
```> **Launch application in development mode**
```sh
npm run dev
```> **Testing Application**
```sh
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](https://github.com/PaulLeCam/react-leaflet/issues/69) and [https://github.com/PaulLeCam/react-leaflet/issues/45](https://github.com/PaulLeCam/react-leaflet/issues/45)> **Build application**
```sh
npm run build
```> **Run application**
```sh
npm run start
```> **Extras**
- Best fix of `npm run.lock` merge conflict
```
$ git checkout -- npm run.lock
$ npm run install
```