triton2997 / cowin-slot-notifier

Utility that automatically alerts via email if slots are available on the CoWIN portal. Provides rich filtering by list of pincodes, type of vaccine, dose number, etc
0 stars 0 forks source link

[TASK]: Explore deployment options #21

Closed triton2997 closed 3 years ago

triton2997 commented 3 years ago

Story: #20

Date: 12/07/2021

Description:

Explore options for deployment of app. Following are the current options:

  1. Python anywhere
  2. Heroku

Task type: Requirements

Estimated efforts (person hours): 3

Actual efforts (person hours): 5

triton2997 commented 3 years ago

Reorganized the project directory and added docstrings Cloned master code to Python Anywhere Added project path the PYTHONPATH variable Facing Response 403 error when executing the code from Python Anywhere BASH shell, to be explored further

triton2997 commented 3 years ago

Response 403 is due to CoWIN APIs allowing only servers from India to make API calls, limiting deployment options as Python Anywhere and Heroku both seem to not have option to set the location to India (at least in the free version) Explore Digital Ocean to see if free credits can be used to run the app.

triton2997 commented 3 years ago
  1. AWS EC2 free tier allows creating a VM in India
  2. Set up of VM complete
  3. Installed python and git
  4. Cloned the repository
  5. Tested API call from VM and returned a response successfully
triton2997 commented 3 years ago

Code committed to master and deployed on EC2 VM