Skip to content

avyayjain/video_management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is Todo application system

Installation

1. Clone the repository

git clone https://github.com/avyayjain/video_management.git

2. Install the requirements to install the requirements run the following command

pip install -r requirements.txt

3. do alembic migration

alembic revision --autogenerate -m "initial migration"
alembic upgrade head

4. create the .env file and add the following variables

DATABASE_URL
DATABASE_USER
DATABASE_PASSWORD
DATABASE_DB
SECRET_KEY
ALGORITHM
ACCESS_TOKEN_EXPIRE_MINUTES

5. run the server

python3 -m uvicorn main:app --host 0.0.0.0 --port 8000

you can also use fastapi cli

fastapi dev main.py

6. you can also build the docker container by running the following command

docker build -t video_manegement .

7. you can run the docker container by running the following command

docker run -d -p 8000:8000 video_manegement

Testing

1. now you can go to the postman the collection by visiting this url

https://www.postman.com/technical-saganist-64650375/workspace/projects/collection/23939640-e40ae493-90df-4a04-afe0-04e326b16cd6?action=share&creator=23939640

2. you can also go to the swagger documentation by going to the following url

http://localhost:8000/docs

3. you can also test some api by the command

pytest -v

4. for api documentation you can go to the postman collection documentation for endpoins and response

Technologies Used

Python FastAPI GitHub Actions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published