Web map application
- Clone or link
web-data
from https://github.com/czechinvest/web-data/ to
public
directory
- Uncomment alternative configuration of DATA_URL variable in
./config/env.js
install dependencies
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.
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.
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
Run creation of documentation.
The output is placed into docs directory.
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
.