π 2023-12-27 β Session: Developed and Debugged Web Application Backend
π 22:50β23:30
π·οΈ Labels: Node.Js, Express, Javascript, Web Development, Error Handling
π Project: Dev
β Priority: MEDIUM
Session Goal
The session aimed to develop and debug the backend of a JSON-based web application using Node.js and Express.
Key Activities
- Backend Setup: Initiated the setup of a web server using Node.js and Express, focusing on reading JSON data and creating API endpoints.
- Error Resolution: Addressed common Node.js errors such as βserver.js not foundβ and βCannot GET /β by verifying file paths and defining root routes.
- Frontend-Backend Integration: Connected the frontend with the backend for a Minimum Viable Product (MVP) using AJAX requests to update the user interface.
- JavaScript Debugging: Resolved JavaScript errors, including
Uncaught TypeErrorby ensuring proper DOM loading and script execution order. - Server Verification: Conducted server and endpoint verification using Express and tools like Postman to ensure API functionality.
Achievements
- Successfully set up the backend server and established API endpoints.
- Resolved critical errors in Node.js and JavaScript, enhancing application stability.
- Integrated frontend and backend components, allowing dynamic data exchange.
Pending Tasks
- Further testing of API endpoints with varied data inputs.
- Optimization of JavaScript code for better performance and error handling.