Skip to content

cgm-lab/cgm-one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CGM One Backend

Frontend

Prerequisite

  • Python 3.7+ (for backend)
    • pip3 (package manager)
  • Node.js v12+ (for frontend)
    • yarn v1.21+ (package manager)
    • Quasar v1 (cli)

Install

pip install -r requirements.txt  # backend
# frontend
cd frontend
yarn global add @vue/cli
yarn global add @quasar/cli
yarn

Development

  • Backend (require build frontend first if you want to view spa web)
python app.py
  • Frontend only
cd frontend
quasar dev -m pwa

Production

# build frontend
cd frontend
quasar build -m pwa
# run server
cd ..
python app.py