Skip to content

Latest commit

 

History

History
65 lines (59 loc) · 1.84 KB

Readme.md

File metadata and controls

65 lines (59 loc) · 1.84 KB

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