Activity 21: Python Anywhere Deployment

Deployment on PythonAnywhere

1 Forked this https://github.com/thirdygayares/keriderya-api
2
. Set up a Python Anywhere account

  • list your credentials on Excel
    3. Add new Bash Consoles in the Console tab
    4. Clone the repositories in the server use your forked repositories
    5. Set up a database in MYSQL Console
    6. Create a virtual environment
    7. Activate virtual environment
    8. Configure env
    9. nano config.py then remove the certificate
    10. python -m flask db upgrade
    11. Check MySQL tables
    12. GO to web tab
    13. Create a new web app
    a. Choose Flask
    b. Python 3.10
    14. Path virtual environment
    15. Edit wsgi
    16. Reload on the web tab
    17. Test all in postman if working
    18. add dummy data

Create step-by-step documentation on hashnode

- include screenshot
- your forked repositories
- also include a screenshot of Postman (API testing)
- include the link of your deployment output
example: https://testsvfcb.pythonanywhere.com

Step 2: Set Up a PythonAnywhere Account

Step 3: Open Bash Console

  1. Log in to your PythonAnywhere account.

  2. Navigate to the Consoles tab and add a new Bash console.

Step 5: Set Up a Database in MySQL Console

  1. Go to the Databases tab.

  2. Create a new MySQL database.