This FastAPI application provides a robust RESTful API for video management. Admin users can perform various tasks to manage the video content efficiently.
git clone https://github.com/tnahddisttud/video_man.git
# Navigate to the project directory
cd video_man
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
source venv/bin/activate # Linux/macOS
# or
venv\Scripts\activate # Windows
# Install requirements
pip install -r requirements.txt
Create a .env
file in the root directory and add the following environment variables:
SECRET_KEY=your_secret_key
ALGORITHM=your_algorithm
Use the following command to run the application:
uvicorn main:app --reload
Open your browser and navigate to http://localhost:8000/docs to access the Swagger-based API documentation.
Use the API endpoint POST /user
in the documentation to create an admin user. Provide the required details in the request body.