/budgetq

Legco FC Initial Replies Website

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Legco FC Initial Replies Website

This website is built with React and Webpack

Setup Environment

  1. Install Node.js and yarn
  2. Fork this repo
  3. Clone your repo
  4. Install packages with yarn
yarn install

Config

This application is config via environment parameter

Name Usage Default Value Validate Value
NODE_ENV Mode of application 'dev' 'production' or 'dev'
PORT Port Number of server 3000 Any integer
ENDPOINT Web API endpoint 'https://api.g0vhk.io' Any string

Start Development

You have to run yarn dev:setup for the very first time you start the development server

yarn dev

A server will be start running at http://localhost:3000. Hot reloading would be enable in server.

The server is running with nodemon, you may refer to the document of nodemon

Production

yarn build
export NODE_ENV=production
yarn start

A production server will be started at http://localhost:3000