开源软件名称(OpenSource Name): google-map-react/old-examples开源软件地址(OpenSource Url): https://github.com/google-map-react/old-examples开源编程语言(OpenSource Language):
JavaScript
90.1%
开源软件介绍(OpenSource Introduction): google-map-react examples
This project is isomorphic Flummox redux app with google-map-react control examples.
It also uses non-standard approach for routing.
Other docs.
Install
I highly recommend to use docker for development.
For non docker users
Install
Run developer build with hot reload
# console 1
npm run hot-dev-server
run browser and type http://localhost:3000/map/main
Run production build (isomorphic )
# console 1
NODE_ENV=production npm run build
NODE_ENV=production npm run start
run browser and type http://localhost:3000/map/main
Environment variables you can set
NODE_ENV default undefined (for production version must be set NODE_ENV='production')
EXT_IP default 0.0.0.0 (if you need hot reload work on your subnetwork set as your local network ip)
HOT_RELOAD_PORT default 3081 (any port for hotreload to work)
SERVER_PATH default empty string ''
USE_PRERENDER default equal to true if NODE_ENV === 'production'
For docker users:
Install
./docker/base_image/build.sh
./docker/react_image/build.sh
# and add bash_profile aliases from ./docker/bash_profile
cat ./docker/bash_profile >> ~ /.bash_profile
source ~ /.bash_profile
Run developer build with hot reload
run browser and type http://localhost:3080/map/main
Run production build (isomorphic )
./docker_run.sh --production
run browser and type http://localhost:3080/map/main
Enter container to view or to test anything (be sure bash_profile aliases from ./docker/bash_profile installed )
# be sure bash_profile aliases from ./docker/bash_profile installed
denter gmr
tmux att
For Docker OSX users:
gh-pages generation
./docker_run.sh --serverpath '/google-map-react' --production
denter gmr
tmux att
./scripts/gh-pages-generator.sh
License
MIT (http://www.opensource.org/licenses/mit-license.php )
请发表评论