shrimpy / escape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Escape

  • TBD

Technology

  • Lerna
  • Reactjs
  • Webpack
  • Typescript
  • Expressjs
  • yarn

Folder structure

/---
   |
   |------- packages
              |
              |-------- client (Reactjs application)
              |           
              |-------- server (Expressjs)
   

Commands

Init

yarn
  • install lerna

Local development environment

yarn dev
  • Create local development environment
    • ensure dependencies are installed
    • start client project with hot reload
    • start server project with hot reload
    • auto open browser

Release Build

yarn build
  • produce build artifact to deploy to production
    • ensure dependencies are installed
    • build client project
    • build server project
    • copy client assets into server's public folder

Deploy to heroku

yarn build
heroku buildpacks:clear
heroku buildpacks:add heroku/nodejs 
# Keep devDependencies so that lerna will work
heroku config:set NPM_CONFIG_PRODUCTION=false
git push heroku master

About

License:Apache License 2.0


Languages

Language:JavaScript 47.1%Language:TypeScript 45.4%Language:HTML 7.2%Language:Procfile 0.2%