Skip to content

Latest commit

 

History

History
90 lines (51 loc) · 2.59 KB

README.md

File metadata and controls

90 lines (51 loc) · 2.59 KB

flask-API

This is a simple python API server using Flask, Vue JS and MySQL.

Install

Clone repo

git clone https://github.com/ghost717/flask-API.git flask-API

Install server

python -m venv env

#win
env\Scripts\activate 

#mac
source env/bin/activate 

pip install flask flask-cors flask-mysqldb flask-bcrypt flask-jwt-extended flask_login

Install client

npm install -g @vue/cli@3.7.0

vue create client

Run

Run serwer

python app.py

Run client

npm run serve

Deployment client in Firebase

  • firebase config
firebase init
  • build
npm run build
  • deploy in firebase
firebase deploy --only hosting

Source

Wheel for MySQLdb