A simple task management API built with FastAPI.
-
Clone the repository:
git clone https://github.com/yourusername/task_management_api.git cd task_management_api
-
Create and activate a virtual environment:
On a macOS/Linux:
python3 -m venv venv source venv/bin/activate
On Windows:
python -m venv venv .\venv\Scripts\activate
-
Install the dependencies:
pip install -r requirements.txt
-
Initialize the database:
This step will create the necessary tables in your database.
python3 scripts/database_setup.py
-
Run the FastAPI application:
Start the development server using Uvicorn:
uvicorn main:app --reload
-
Access the API documentation:
Open your browser and go to http://127.0.0.1:8000/docs to see the interactive Swagger UI documentation.