Flask and Vue.js template designed as a starting point to enable quick web-app development.
cd server
python -m venv venv
source ./venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
npm install -g @vue/cli
vue create frontend
cd frontend
npm install
python main.py
npm run serve
npm run build
npm run test
npm run lint
Set up GAE for new project, TL;DR version of GAE docs. See here for more details.
gcloud components update
gcloud auth login
gcloud app create --project=[YOUR_PROJECT_ID]
gcloud components install app-engine-python
Ensure ./frontend/vue.config.js publicPath is updated to the path of the project.
Ideally more work needs to be put into having this as an environment variable.
# build frontend
cd frontend
npm run build
# switch to backend directory
cd ../backend
gcloud app deploy