{"id":20832476,"url":"https://github.com/codetanzania/open311-web-public","last_synced_at":"2025-05-08T01:25:57.050Z","repository":{"id":91615767,"uuid":"99569264","full_name":"CodeTanzania/open311-web-public","owner":"CodeTanzania","description":"Public website for https://github.com/CodeTanzania/open311-api","archived":false,"fork":false,"pushed_at":"2018-06-26T04:35:01.000Z","size":5384,"stargazers_count":2,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-31T16:13:46.754Z","etag":null,"topics":["311","codetanzania","leaflet","leafletjs","open311","react","react-native","tanzania"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeTanzania.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T11:06:38.000Z","updated_at":"2020-04-12T14:38:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc286087-f535-4c46-8edb-fa10afc3f705","html_url":"https://github.com/CodeTanzania/open311-web-public","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTanzania%2Fopen311-web-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTanzania%2Fopen311-web-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTanzania%2Fopen311-web-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeTanzania%2Fopen311-web-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeTanzania","download_url":"https://codeload.github.com/CodeTanzania/open311-web-public/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252980319,"owners_count":21835209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["311","codetanzania","leaflet","leafletjs","open311","react","react-native","tanzania"],"created_at":"2024-11-18T00:11:58.331Z","updated_at":"2025-05-08T01:25:57.041Z","avatar_url":"https://github.com/CodeTanzania.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# open311-web-public\nDawasco public website for open311 issues\n\n## Project Structure\n```\n.\n├── README.md\n├── config\n│   ├── jest\n│   │   ├── fileMock.js\n│   │   └── fileTransform.js\n│   ├── webpack.config.dev.js\n│   └── webpack.config.prod.js\n├── development.js\n├── package.json\n├── production.js\n├── public\n├── src\n│   ├── index.js\n│   ├── setupTests.js\n│   ├── components\n└── package-lock.json\n```\n\n- `development.js`  \nServer in dev environment  \n- `production.js`  \nServer in production environment    \n- `config/webpack.config.dev.js`  \nWebpack development configuration  \n- `config/webpack.config.prod.js`  \nWebpack production configuration \n\n\n## Usage\n\n\u003e **First install all the dependencies for development**\n\n```sh\nnpm install \u0026\u0026 bower install\n```\n\n\u003e **Launch application in development mode**\n\n```sh\nnpm run dev\n```\n\n\u003e **Testing Application**\n\n```sh\nnpm run test\n```\nNote  \nLeaflet 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)  \n\n\n\u003e **Build application**\n\n```sh\nnpm run build\n```\n\n\u003e **Run application**\n```sh\nnpm run start\n```\n\n\u003e **Extras**\n- Best fix of `npm run.lock` merge conflict\n    ```\n    $ git checkout \u003cprevious commit\u003e -- npm run.lock\n    $ npm run install\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetanzania%2Fopen311-web-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodetanzania%2Fopen311-web-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetanzania%2Fopen311-web-public/lists"}