FamPay-Hiring-Assignment

Backend Assignment


TechStack Used

  1. Python (Programming Language)
  2. Django (Web Framework)
  3. PostgreSQL (Database)

API's Postman Screenshots

1. Get Videos (GET Request)
Returns all the videos order by latest published date. When you get an error All APIKey's Quota is over/Empty, Add a new APIKey use Add Key API (2nd point) for adding a new Youtube Data API Key in the database.

Alt text

Status Time Size
200 OK 76 ms 19.79 KB

2. Add Key (POST Request)
When you get an error All APIKey's Quota is over, Add a new APIKey, then use this api, for adding a new Youtube Data API Key in the database, so the service will start again, fetch and store videos in the database.

Alt text

Status Time Size
201 OK 27 ms 378 B


Steps to Follow

  1. Clone the Repository

  2. Run the following command

    $ docker-compose up --build
    
  3. Now create superuser for accessing the dashboard to view the stored videos

    $ docker exec -it fampay bash
    $ python3 manage.py createsuperuser
    
  4. To access the dashboard checkout http://127.0.0.1/admin


Now run the following apis described in the Postman collection for testing the project.