Giter Site home page Giter Site logo

hello-world-react's Introduction

Hello World React ๐ŸŒ™

A simple create-react-app skeleton app used to test Google App Engine (GAE) deployment, along with Travis CI

Steps

  1. Run create-react-app hello-world-react
  2. Install google cloud sdk if you prefer deploying using CLI compared to Travis or GAE Dashboard. instructions here!
  3. Create app.yaml for configuring your GAE settings. It can run with minimal settings, no worries!
  4. Install travis-cli if you haven't. The ever fantabulous github repo
  5. Download your GAE App's credential key from Dashboard > API & Services > create credential
  6. Encrypt GAE App's credential into Travis's .travis.yml using the command travis encrypt secretCredential.json --add
    • Do NOT commit the original credential file
    • COMMIT ONLY the generated secretCredential.json.enc file (ignore .enc extension when configuring .travis.yml)
  7. Log into your Travis Account and link your Github Repository.
  8. Commit and push your code to automation greatness.

Fun fact and takeaways

  1. gcloud init is not a per-project command. It's a global command used to init a new project in GAE, similar to creating a new repository in Git. Once you have created an App using the command, you may build multiple projects in it. (Look at it like a server instance)
  2. Once your service is deployed on GAE using Travis, the old version will be stopped.
    • This can be prevented by using no_stop_previous_version flag in Travis
    • If you have two versions of the same service running, you can split traffic in GAE's Dashboard, under Versions. Can be useful for non-demographically targeted AB Testing
  3. GAE is PaaS, while Google Compute Engine (GCE) is Iaas. What are the differences?
  4. For some reason Travis build process is a lot longer than simply running gcloud app deploy. It needs to be looked into.
  5. Node JS can only use flexible environment on GAE, which will incur higher cost!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.