Patient Relationship Management is an efficient system for managing patient relationships. This repository provides a basic API for creating and authenticating doctors and users.
- User: user model, contains the
is_super_user
attribute. - Doctor: doctor model.
- DTimeSlot: a time slot for a doctor, one record per slot.
- Appointment: appointment record.
- FastAPI: for building the API.
- SQLAlchemy: for database interaction.
- Alembic: for database migrations.
- Poetry: for dependency management and packaging.
- alembic/: directory for managing database migrations.
- crud/: functions for Create, Read, Update, Delete operations.
- database/: database connection settings and sessions.
- models/: database model definitions.
- oauth2/: OAuth2 implementation for authentication.
- routers/: API endpoint routes.
- schemas/: Pydantic schemas for data validation.
- utils/: utility functions.
- main.py: the main file to run the application.
- alembic.ini: Alembic configuration file.
- pyproject.toml: Poetry configuration file for managing dependencies.
- poetry.lock: Poetry lock file for dependency versions.
- .gitignore: file specifying which files and directories to ignore in Git.
To run the project on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/aidin1324/MedTech-Backpart.git cd https://github.com/aidin1324/MedTech-Backpart.git poetry install poetry run uvicorn main:app --reload
Below is an example of our API documentation generated by Swagger UI, where you can interact with the API directly.
Khan Aidin - [email protected]