solomonhawk / waypoints

MIT License
2 stars 1 forks source link

React Webpack Typescript Starter

Source

Installation

  1. Clone/download repo
  2. yarn install (or npm install for npm)
  3. cp .env.example .env
  4. Fill in the required environment variables in .env

Environment Configuration

This project uses 12-Factor Config. Configuration lives in .env. The values required can be found in the #waypoints slack channel on Hawk's Nest or by contacting Solomon Hawk.

Usage

Development

yarn run start:dev

Production

yarn run start:prod


All commands

Command Description
yarn run start:dev Build app continuously (HMR enabled) and serve @ http://localhost:8080
yarn run start:prod Build app once (HMR disabled) and serve @ http://localhost:3000
yarn run build Build app to /dist/
yarn run test Run tests
yarn run test:cov Run test coverage
yarn run lint Run Typescript linter
yarn run start (alias of yarn run start:dev)
yarn run deploy Deploy with now
yarn run deploy:now Deploy immediately without doing a build first

Note: replace yarn with npm if you use npm.

See also