πŸ“… 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 TypeError by 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.