• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

google-map-react/old-examples: Examples for google-map-react component.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(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

    npm install  
  • Run developer build with hot reload

    #console 1
    npm run hot-dev-server
    #console 2
    npm run start

    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

    ./docker_run

    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:

  • install watchman

    brew install watchman
  • fix watchman add this to ~/Library/LaunchAgents/com.github.facebook.watchman.plist

    <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>/Users/ice/v-1/install/google-sdk/google-cloud-sdk/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/CrossPack-AVR/bin:/usr/local/go/bin:/Users/ice/v-1/checker-276:/home/ice/web_projects/amazon_ec2/ec2-api-tools-1.6.13.0/bin</string>
    </dict>
    launchctl unload -w ~/Library/LaunchAgents/com.github.facebook.watchman.plist
    launchctl load -w ~/Library/LaunchAgents/com.github.facebook.watchman.plist
  • install boot2docker with nfs support (vboxfs is really-really slow)

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)




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ohyicong/Google-Image-Scraper: A library to scrap google images发布时间:2022-06-22
下一篇:
seejohnrun/google_plus: Google+ Ruby Gem发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap