Skip to content

sbecker11/fastapi-vue-vuelidate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developing a Single Page App with FastAPI and Vue.js and Vuetify

Adapted from Michael Herman's article Developing a Single Page App with FastAPI and Vue.js last updated December 14th, 2022, with github repo https://github.com/testdrivenio/fastapi-vue.

Pay particular attention to the graphical OpenAPI interface, which is auto-generated by FastAPI!

I simply added validation rules, and a confirm password field, to the existing registration page.
Here's a snapshot:
registration page)

Using docker-compose for the build

Make sure Docker is running locally.

Then use the images and spin up the containers:

$ docker-compose up -d --build

Apply the database migration for Tortoise ORM on PostgreSQL using aerich:
$ docker-compose exec backend aerich upgrade

Open browser to http://localhost:5000 to verify that FastAPI service is running

This should show "FastAPI service is running"

server

Go to the OpenAPI interface at http://localhost:5000/docs

This will show the FastAPI-generated OpenAPI interface, first the requests

requests



and then the schemas.

schemas



Finally, go to the homepage http://localhost:8080 to register or login

homeopage

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published