Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Instruction for setting up Frontend server

  1. Please check the nodejs, npm, and yarn are installed. Or
sudo apt install nodejs
sudo apt install npm
sudo npm install --global yarn
  1. Install dependency
yarn install
  1. Create static files
yarn deploy
  1. Copy the static files to the corresponding directory
sudo cp -r ./build/* /var/www/html/
  1. Restart nginx
sudo systemctl restart nginx 

note

  • package.json

replace

"browserslist": {
"production": [
  ">0.2%",
  "not dead",
  "not op_mini all"
],
"development": [
  "last 1 chrome version",
  "last 1 firefox version",
  "last 1 safari version"
]
},

with

"browserslist": [
  ">0.2%",
  "not dead",
  "not op_mini all"
],