Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Aug 20, 2019
Jan 7, 2019
fix
Sep 10, 2019

frontend-application

CircleCI

Prerequisite

  • nodenv
  • yarn
  • serverless
  • aws cli
  • direnv

Environment valuables

# Create .envrc to suit your environment.
cp -pr .envrc.sample .envrc
vi .envrc # edit

# allow
direnv allow

Also, you should use variables in .envrc.sample.develop when you are developing.

Build and deployment

Install dependencies

# install dependencies
nodenv install
yarn

Build

yarn build

Deployment

yarn deploy

# Re install dependencies
yarn

Development

Serve with hot reload at localhost:3000

yarn dev

Launch server

yarn start

Generate static project

yarn generate