Deployment of Node.js Sample Application to Amazon and Increasing the Sustainability Factor of the Accessing System What Inspired Me Today sustainable development is among the main topics that should be considered. I wished to help address this problem by developing a web application that would assist inspectors in analyzing sustainability indicators of buildings. Also, I wanted to learn more about how to put my applications in the cloud and serve people across the globe. As a result, I decided to look up how to host a Node.js application on an AWS EC2 instance. For further backend development and optimal database management, I have integrated the LoopBack framework along with PostgreSQL on Amazon RDS.
What I Learned Through this project, I learned:
1) AWS EC2 Setup and Deployment: 2) Database Management with PostgreSQL and RDS: 3) Frontend Development with HTML and CSS: 4) Sustainability Metrics Analysis:
How I Built the Project 1) Backend Development with LoopBack: -Defined models for users, properties, and sustainability metrics. Auto-generated RESTful endpoints for CRUD operations.
2) Database Integration with PostgreSQL and RDS:
- Integrated a PostgreSQL database hosted on Amazon RDS with the backend for scalable data management.
3) Frontend Development:
- Enhanced the UI with responsive designs and interactivity using HTML and CSS.
4)Hosting on AWS EC2:
- Deployed the Node.js application on an Ubuntu EC2 instance, managed with PM2 for continuous uptime.
5) Categorization and Dashboard:
- Built algorithms to classify buildings into sustainability categories and created a dashboard to visualize strengths and improvement areas.
Challenges I Faced 1) Deployment Issues:
- Getting a grasp on EC2 instance permissions and specifically SSH was not clear at first.
2) Database Connection Errors:
- One of the biggest challenges in this implementation was establishing the integration of LoopBack and PostgreSQL on RDS which involved choosing the correct security groups and entering proper credentials for operation.
3) CSS Layout Struggles:
- Even achieving a clean design with responsiveness meant going through several iterations and learning quite a few HTML/CSS tips and tricks.
4) Understanding Sustainability Metrics:
- One of the challenges was to accurately determine the logic of categorizing buildings into sustainability factors during the research and implementation process.
Log in or sign up for Devpost to join the conversation.