Skip to content

darky623/postgres-fastapi-vite-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI/Postgres/React (vite) template

A basic dockerised CRUD FastAPI implementation with postgres db, served with react using vite.

License: MIT

🏃‍♂️ How To Run

  • Ensure ports 5173, 8080, 8000, 5432 are free
  • do docker-compose up --build in the root directory of the project
  • if you previously ran an older Postgres image and now see a startup error about /var/lib/postgresql/data, reset volumes with docker compose down -v (this deletes the database volume) and then rerun docker compose up --build
  • goto http://localhost:5173 and enjoy the frontend
  • to explore the db run docker exec -it postgres psql -U username -W vector in the root of the project, give password as the password
  • An adminer instance is running on http://localhost:8080 in case you would like to examine the db that way

About

FASTAPI @postgres (SQLAlchemy, uvicorn) / REACT (VITE)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 52.8%
  • Python 25.6%
  • CSS 16.5%
  • HTML 2.6%
  • Dockerfile 2.5%