Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/golamsarwar96/smart-picks-app-server

Smart Picks is a product recommendation react application. This repository contain the server side code with CRUD Operation and API endpoints
https://github.com/golamsarwar96/smart-picks-app-server

cookie-parser cors crud-operation expressjs jwt-authentication jwt-token middleware mongodb mongodb-atlas nosql-database

Last synced: about 8 hours ago
JSON representation

Smart Picks is a product recommendation react application. This repository contain the server side code with CRUD Operation and API endpoints

Awesome Lists containing this project

README

        



# Project Name: Smart Picks 📦

The server-side implementation of a Product Recommendation Platform "Smart Picks" built with Express.js, MongoDB, and JWT for authentication. The backend provides RESTful APIs to manage queries, recommendations, while handling authentication and secure cookie management using cookie-parser.

# Features

• Authentication: Secure user authentication using JWT stored in cookies

• CRUD Operations:
- Queries: Create, read, update, and delete user queries.
- Recommendations: Add, update, and delete product recommendations. - Comments: Manage user comments on queries and recommendations.

• Cookie Management: Securely store authentication tokens using cookie-parser.
• Database: Uses MongoDB for data persistence.

## Tech Stack 👨🏻‍💻

• Framework: Express.js

• Database: MongoDB

• Authentication: JWT (JSON Web Tokens)

• Middleware: CORS, cookie-parser

## Installation

### **1. Clone the Repository**
```sh
git clone https://github.com/golamsarwar96/smart-picks-app-server.git
```
### **2. Install Dependencies**

```sh
npm install
```
### **3. Environment Configuration**
Create a .env file in the project root and add the following environment variables

```sh
# Database Configuration
MONGO_URI=mongodb://localhost:27017/smartpicksDB

# JWT Secret for Authentication
JWT_SECRET=your_jwt_secret_key

```

### **4. Run the Project**
```sh
npm run dev
```

## LIVE LINK: 🌐

https://smart-picks-server.vercel.app