Skip to content

Releases: JangHwanPark/nodejs-apis

Release Notes for version 1.0.1

27 Jun 23:37
0089352
Compare
Choose a tag to compare
Pre-release

Overview

This release addresses a critical issue related to user authentication that was preventing users from logging in. The issue stemmed from a missing model in the Prisma client, leading to an undefined error during the creation of refresh tokens. Additionally, debugging logs have been added to aid in future troubleshooting and a new logic to ensure password hashing consistency has been implemented.

Issue Description

  • User Authentication Error: Users encountered an error message "Cannot read properties of undefined (reading 'create')" when attempting to log in.
    • Root Cause: The error was traced back to the Prisma client where the refreshToken model was missing, resulting in prisma.refreshToken.create being undefined.

Fixes

  • Debugging Logs Added: Detailed logging has been implemented across the user authentication process to facilitate easier debugging and issue tracking.
    • Logs capture each step of the authentication process.
  • Password Hashing Logic: The authenticateUser function has been updated to check whether passwords are hashed. If passwords are not hashed, they are now hashed and updated in the database to maintain consistency.

How to Use

  • Access the Application: Visit the public DNS or IP address of your EC2 instance in a web browser to access the application.
  • Test API Endpoints: Use the provided interface to test different API endpoints by inputting specific IDs and clicking the 'Run' button.

Known Issues

  • Cross-Origin Requests: Ensure that the API server has CORS (Cross-Origin Resource Sharing) enabled to allow requests from your EC2 instance.
  • Browser Compatibility: Ensure you are using a modern browser to fully experience all features of the application.

Future Improvements

  • Backend Integration: Plan to integrate more complex data processing and state management on the backend.
  • Enhanced Security: Implement additional security measures to protect API requests and responses.
  • Performance Optimization: Optimize the application for better performance and faster data fetching.

Important Notice

EC2 Instance Limitations: Please note that this application is hosted on an EC2 instance under a student account. Due to the limited resources and policies associated with student accounts, the server may not always be running. The server operates in specific time intervals and may be available only during certain times. It is configured to run every 4 hours or during specific scheduled periods. If you encounter any issues accessing the application, it is likely because the EC2 instance is currently stopped or outside of its scheduled operation times. Please try again later during the scheduled running times.

Contributors

  • JPark : Lead Developer, QA Engineer
  • Uk : Developer
  • Go Geonyoung : UI/UX Designer

For more information and to report issues, please visit the GitHub repository.

Release Notes for version 1.0.0

23 Jun 02:45
Compare
Choose a tag to compare
Pre-release

Overview

This release introduces a static HTML version of the application, designed to be hosted on AWS EC2 and served through AWS CloudFront. The application is now capable of fetching dynamic data from external APIs directly from the client side, providing a seamless and interactive user experience.

New Features

  • EC2 Deployment: The application is now hosted on AWS EC2, providing a robust and scalable environment.
  • MySQL Integration: Implemented MySQL as the primary database for storing and managing data.
  • Dynamic Data Fetching: The application fetches data from various APIs and displays it in real-time.

Sections

  • API Introduction: Added sections explaining what an API is and the typical use cases.
  • Endpoint Documentation: Documented various API endpoints for fetching data, including descriptions and example links.
  • API Test Interface: Included an interactive interface for testing API endpoints. Users can input specific IDs to fetch detailed information about users, books, and products.

Fixes

  • Navigation Issues: Resolved minor issues with navigation links and ensured all links are functional and correctly routed.
  • Error Handling: Improved error handling in JavaScript to provide better feedback when API requests fail.

How to Use

  • Access the Application: Visit the public DNS or IP address of your EC2 instance in a web browser to access the application.
  • Test API Endpoints: Use the provided interface to test different API endpoints by inputting specific IDs and clicking the 'Run' button.

Known Issues

  • Cross-Origin Requests: Ensure that the API server has CORS (Cross-Origin Resource Sharing) enabled to allow requests from your EC2 instance.
  • Browser Compatibility: Ensure you are using a modern browser to fully experience all features of the application.

Future Improvements

  • Backend Integration: Plan to integrate more complex data processing and state management on the backend.
  • Enhanced Security: Implement additional security measures to protect API requests and responses.
  • Performance Optimization: Optimize the application for better performance and faster data fetching.

Important Notice

EC2 Instance Limitations: Please note that this application is hosted on an EC2 instance under a student account. Due to the limited resources and policies associated with student accounts, the server may not always be running. The server operates in specific time intervals and may be available only during certain times. It is configured to run every 4 hours or during specific scheduled periods. If you encounter any issues accessing the application, it is likely because the EC2 instance is currently stopped or outside of its scheduled operation times. Please try again later during the scheduled running times.

Contributors

  • JPark : Lead Developer
  • Go Geonyoung : UI/UX Designer
  • JPark : QA Engineer

For more information and to report issues, please visit the GitHub repository.