BenMaruchu / public-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

open311-web-public

Build Status

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

npm 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 PaulLeCam/react-leaflet#69 and PaulLeCam/react-leaflet#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

Install Redux devTools Browser Extension

Install Extension for your browser

  1. For Google Chrome
  2. For Mozilla Firefox

About


Languages

Language:JavaScript 84.3%Language:CSS 15.0%Language:HTML 0.8%