Build and Run Frontend
Local Environment Setup
- Install Node.js. (14.X Current or later)
- Yes, Node.js is the only thing we need.
Install Dependencies
note
Execute the following commands in the frontend directory.
npm i -g yarn
yarn install
Start Development Server
Changes made to the source code will make browser to reload new changes.
Development server uses port 3000 by default, i.e. http://localhost:3000
yarn start
Build Frontend to Static Files for Production
The built files can be deployed to anywhere you want.
yarn build
Start Production Server
Changes made to the source code will not trigger auto-refresh on the browser.
Production server uses port 3002, i.e. http://localhost:3002
yarn serve