My repo when I worked through Testdriven.io's article, Developing-a-single-page-app-with-flask-and-vuejs.
Article: Source Repo
Check out the post.
-
Fork/Clone
-
Run the server-side Flask or Fastapi app in one terminal window:
$ cd fastapi $ pipenv --python 3.7 $ pipenv shell $ pipenv install (fastapi)$ ./start.sh
$ cd flask $ pipenv --python 3.7 $ pipenv shell $ pipenv install (flask)$ ./start.sh
Navigate to http://localhost:5000
-
Run the client-side Vue app in a different terminal window:
$ cd client $ yarn install $ yarn serve
Navigate to http://localhost:8080