-
Notifications
You must be signed in to change notification settings - Fork 0
Hosting
We created an Elastic Compute Cloud (EC2) instance (virtual machine) and placed idb.py inside of it. We then used Apache2 to map the ip address of the EC2 instance to idb.py. In idb.py we utilize Flask as our backend to link the database and the HTML templates. On top of Flask we have Jinja2 which allows us to embed dynamic content through Flask onto the HTML pages. We use SQLAlchemy to model databases in Python using classes instead of plsql. It is also used to query the tables, integrate with Flask, and get data from the database which is hosted on Amazon Web Services relation database (AWS RDS). We bought the domain sweatshop.tech from Namecheap after much deliberation. We mapped the domain to the public IP and public DNS of our EC2 instance on AWS so that going to the Namecheap domain would run idb.py and Flask can route your request, connect to the AWS PostgresSQL database, and finally render the HTML templates.