Skip to content

An example of my FastAPI code with a solution to a real business problem

Notifications You must be signed in to change notification settings

kiril-chekhlatov/fastAPI-crm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI - Test CRM for universities

A small CRM system for universities is made for a real business task. There are pytest tests, FactoryBoy. The project uses CRUD with Pydantic, SqlAlchemy and Alembic. JWT authorization is used. API documentation is available in Swagger

Endpoint map with documentation for 127.0.0.1 (standard host + port):

Launch project on Ubuntu with python3.8.10 and PostgreSQL 12.14:

  1. git clone <project_url>
  2. cd <project_name>
  3. python3 -m venv venv
  4. . venv/bin/activate
  5. pip3 install -r requirements.txt
  6. cd app
  7. python3 backend_pre_start.py
  8. alembic upgrade head
  9. python3 initial_data.py
  10. uvicorn main:app --reload

Launch tests on Ubuntu with python3.8.10 and PostgreSQL 12.14:

  1. git clone <project_url>
  2. cd <project_name>
  3. python3 -m venv venv
  4. . venv/bin/activate
  5. pip3 install -r requirements.txt
  6. cd app
  7. python3 backend_pre_start.py
  8. alembic upgrade head
  9. python3 initial_data.py
  10. python3 -m pytest tests

Releases

No releases published

Packages

No packages published