Skip to content

wpcodevo/python_fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Back End


pip install -r requirements.txt
create you .env file as .env.example
create your database on postgresql , the same database name in .env file

Run the command: alembic init alembic
Run the command: alembic revision --autogenerate -m "creat users table"
Run the command: alembic upgrade head
Run server: uvicorn app.main:app --host localhost --port 8000 --reload
The Api documentation is on this url:
http://localhost:8000/docs

Front End


npm install
npm start

To do:


Finish the dashboard frontend

About

This article will teach you how to create a CRUD RESTful API with Python, FastAPI, SQLAlchemy ORM, Pydantic, Alembic, PostgreSQL, and Docker-compose to perform the basic Create/Read/Update/Delete operations against a database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages