Skip to content

Releases: Chmod351/ecommerce-api-rest-javascript-node-mongo

pre-realease

29 Jun 23:16
Compare
Choose a tag to compare
pre-realease Pre-release
Pre-release

New Features:

This version of the e-commerce project introduces several new features and enhancements. The following endpoints have been added to provide additional functionality:

Users:

  • User Registration and Login: Users can create accounts and log in.
    • JWT Authentication: JWT is used to perform specific actions such as purchasing, adding items to the cart, commenting, responding, etc.
    • User Profile Information: Users can obtain their profile information by ID.
    • Cart Functionality:
      • Create Carts: Users can create shopping carts.
      • View User Cart: Users can view information about their own carts.
      • Update User Cart: Users can update their cart information.
      • Delete User Cart: Users can delete their carts.
    • Comment Responses:
      • Create Comment Responses: Users can create responses to comments.
      • Delete Comment Responses: Users can delete their own responses.
    • Purchase Orders:
      • Create Purchase Orders: Users can create purchase orders.
      • View User Purchase Orders: Users can view their own purchase orders.
      • Delete User Purchase Orders: Users can delete their own purchase orders.
    • Stripe Integration: Users can make orders using the Stripe API.
    • Product Information:
      • View Products: Users can retrieve product information.
      • Search Products: Users can search for products.
      • Select Specific Product: Users can select a specific product.
      • Related Product Recommendations: Users will receive recommendations for related products.
    • Product Comments and Ratings:
      • Create Comments and Ratings: Users can create comments and ratings for products.
      • Delete Own Comments: Users can delete their own comments.
      • View Product Comments: Users can view comments for products.

Admins:

  • User Purchase Statistics: Admins can access user purchase statistics.
    • View All Carts: Only admins can view all carts.
    • Product Management:
      • Create Products: Admins can create new products.
      • Edit Product Information: Admins can edit product information.
      • Delete Products: Admins can delete products.
    • View All Purchase Orders: Admins can retrieve information about all purchase orders.
    • Change Purchase Order Status: Admins can change the status of purchase orders.
    • Monthly Purchase Order Statistics: Admins can obtain statistics for monthly purchase orders.

These features provide users and admins with various functionalities to enhance their experience on the e-commerce platform.

Security Enhancements and Improvements

The following security enhancements and improvements have been implemented in the e-commerce project:

  • Password Encryption: User passwords are now encrypted using bcrypt for enhanced security.
  • Email Validation: Express Validator is used to validate email addresses, ensuring their validity.
  • Caching System: The application has implemented a caching system using apicache, improving performance and reducing unnecessary API calls.

These security enhancements and improvements help protect user data, enhance the overall security of the application, and optimize performance for a smoother user experience.