Docare API is a FastAPI-based backend service for managing medical appointments.
|-- alembic/ # Alembic folder for database migrations
| |-- env.py # Alembic configuration and database connection setup
| |-- versions/ # Stores migration scripts generated by Alembic
|
|-- app/ # Main application folder
| |-- api/ # API-related modules (routes and dependencies)
| | |-- routes/ # FastAPI route definitions (e.g., auth, users, appointments)
| | |-- dependencies.py # Common dependencies (e.g., database sessions, authentication)
| |-- core/ # Core settings and security-related utilities
| | |-- config.py # Application configuration and environment variables
| | |-- security.py # Security utilities (e.g., password hashing, JWT token generation)
| |-- database/ # Database connection and session management
| | |-- session.py # SQLAlchemy session factory for database interactions
| |-- models/ # SQLAlchemy ORM models representing database tables
| | |-- base.py # Base class for models (metadata and declarative base)
| |-- schemas/ # Pydantic schemas for data validation and serialization
| |-- services/ # Business logic and service functions for different modules
| |-- tests/ # Unit and integration tests
| | |-- conftest.py # Test configuration and fixture setup
| |-- main.py # Entry point for FastAPI application
|
|-- .env # Environment variables for sensitive configurations
|-- .env.example # Example environment file
|-- .gitignore # Specifies files and directories to be ignored by Git
|-- alembic.ini # Alembic configuration file
|-- pytest.ini # Configuration for running tests with pytest
|-- main.db # SQLite database file
|-- README.md # Documentation file for the project
|-- requirements.txt # List of Python dependencies
|-- run.py # Script to start the FastAPI server
git clone https://github.com/docare-apps/docare-api.git
cd docare-apipython -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windowspip install -r requirements.txtCreate a .env file in the root directory
alembic upgrade headpython run.pypytestMade with ❤️ by the Docare Team.