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
- Go to PythonAnywhere and create an account.
Step 3: Open Bash Console
Log in to your PythonAnywhere account.
Navigate to the Consoles tab and add a new Bash console.
Step 5: Set Up a Database in MySQL Console
Go to the Databases tab.
Create a new MySQL database.