Web map application
web-data
from https://github.com/czechinvest/web-data/ topublic
directory
./config/env.js
npm install
install dependencies
npm run start
Runs the app in the development mode.
Open http://localhost:3030 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
npm run deploy
It runs build on current branch && creates doc && deploy (push) content of `build` ` ` directory into origin branch ` ` `gh-pages`
.
App: https://czechinvest.github.io/webmap/ API Documentation: https://czechinvest.github.io/webmap/doc
npm run doc
Run creation of documentation.
The output is placed into docs directory.
npm run docmd
Create documentation in markdown language.
Data can be stored anywhere. It's a clone of https://github.com/czechinvest/web-data
In package.json
in scripts (start
and build
) change DATA_URL
parameter to your data location.
Example:
"build": "DATA_URL=https://czechinvest.github.io/web-data/ ENV_URL=/envs/default.json NODE_ENV=production webpack --bail --config config/webpack.config.prod.js --progress --profile --colors",
Environments are loaded dynamically for URL specified in package.json
in scripts start
(start:api
) or build
. Overwrite parameter ENV_URL
(default ENV_URL=/envs/default.json
). Absolute or relative uri could be specified. Default environment (default.json
) can be found in {PROJECT_ROOT}/public/envs/default.json
.