Skip to content

This project demonstrates the implementation of Google login using fastapi-users for the backend, complemented by a Vue 3 frontend.

License

Notifications You must be signed in to change notification settings

taka-wang/fastapi-vue3-oauth-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-vue3-oauth-example

This project demonstrates the implementation of Google login using fastapi-users for the backend, complemented by a Vue 3 frontend.

Library Version

Library Version Frontend/Backend
Python 3.10 Backend
FastAPI 0.104.1 Backend
FastAPI-Users 12.1.2 Backend
Vite 4.4.11 Frontend
Vue 3.3.4 Frontend

🚀 Get Started

Backend (fastapi)

# install poetry
curl -sSL https://install.python-poetry.org | python3 -

poetry install
poetry run uvicorn app.main:app --reload

Open your browser at http://127.0.0.1:8000/docs.

Frontend (vue3 with vite)

npm install
npm run dev

⚙️ Development

Backend (fastapi)

python3 -m venv .venv
source .venv/bin/activate
poetry init
poetry add 'fastapi[all]' 'fastapi-users[sqlalchemy,oauth]' aiosqlite loguru python-decouple
poetry run uvicorn app.main:app --reload

Frontend (vue3 with vite)

npm init vue@latest
cd frontend
npm install axios
npm install
npm run dev

📚 References

About

This project demonstrates the implementation of Google login using fastapi-users for the backend, complemented by a Vue 3 frontend.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published