Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.47 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.47 KB

Increment Fitness

Web Client

Single Page Progressive Web Application for Increment Fitness.

Index

  • README.md
  • package.json
    • specifies dependencies and scripts for npm
  • webpack.config.js
    • specifies configuration for webpack bundling
  • src
    • contains source code written in ECMAscript 2015
    • not included in production
  • lib
    • contains code transpiled by Babel
    • not included in development
  • node_modules
    • contains node dependencies
    • not included in development
  • build/bundle.js
    • contains all the front end dependencies bundled and packed by webpack

Installation

  1. install node (version ^9.5)
  2. install nodemon globally npm install -g nodemon
  3. install dependencies npm install
  4. add google chrome react devtools extension

Running

  1. transpile $ npm run build
  2. run webpack $ npm run webpack
  3. start the server $ npm start
  4. visit localhost:8081 in your browser

Deploying

  1. download gcloud SDK

  2. configure project $ gcloud config set project inc-web

  3. deploy $ gcloud app deploy

  4. visit http://inc-web.appspot.com

    note: https won't work since AWS EC2 instance (dbs) is not https - must use http

  5. logs $ gcloud app logs read