- Redux is used to store and retrieve stored data, but not call API's.
- Redux can be called inside
mapController. - Every interaction with ESRI API should be done using
mapController.jsfile. mapControllerhas acceess to a number of properties which are used to interact with map. For example,mapandmapvieware exposed through_mapand_mapview.- If you need to access certain ESRI API, e.g get layer info, you can write a helper function and export it inside controller that takes in layer id and returns layer info, thus not directly exposing
mapto a specific component, but containing it within the controller.
You can use yarn or npm to get started.
npm installnpm run start
Application should open in localhost
Bundles, serves, and deploys application in development environment to an S3 bucket using the Blue Raster AWS account. Watches for changes in src and webpack.config.js
npm run buildyarn run build
Bundles application in production environment. Consist of additional Webpack processes such as minifying, extracting CSS and gzip.
-
npm run debug -
yarn run debugRuns node debugger to inspect issues with Webpack.
-
npm run lint:js -
yarn run lint:jsLints
*.jsfiles inappfolder using according to specifications in.eslintrcfile. -
npm run fix:lint:js -
yarn run fix:lint:jsFixes lint errors.
-
npm run clean:build -
yarn run clean:buildDeletes contents of
buildfolder
Application utilizes React for building user interfaces, Redux for state management.