Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔗 Product Recommendation System - Backend

This is the backend/server-side of the full-stack Product Recommendation System. Built with Node.js, Express.js, and MongoDB, it handles all API requests, user authentication (JWT), and database operations for queries, recommendations, and comments.


📁 API Base URL

https://product-recommendation-server.vercel.app/

⚙️ Features

  • 🔐 JWT-based authentication and authorization
  • 📩 RESTful APIs for:
    • User registration & login
    • Creating, reading, updating, and deleting product queries
    • Posting and managing recommendations
    • Adding and moderating comments
    • Likes and unlikes
  • ⚠️ Protected routes using middleware
  • 🌐 CORS, environment variables, and security best practices
  • 📦 MongoDB for persistent data storage

🛠️ Tech Stack

Node.js Express.js MongoDB Mongoose JWT Dotenv CORS Cookie Parser


PORT=5000 DB_URI=your_mongodb_connection_string ACCESS_TOKEN_SECRET=your_jwt_secret CLIENT_URL=http://localhost:5173

  • Step 5: Start the server -- node index.js
  • Or, for development with auto-restart npm install -g nodemon nodemon index.js

📦 Installed Dependencies

npm install express cors dotenv jsonwebtoken mongoose cookie-parser

About

Backend API built with Express and MongoDB to manage product queries, recommendations, and secure JWT auth.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages