Skip to content

Latest commit

Β 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Cooee – Full Stack Product Management System

A production-ready inventory management application built with the MERN stack. Features real-time product management, advanced search/filtering, and secure JWT authentication.

πŸ”— Live Demo | πŸ“š API Docs


πŸ§ͺ Demo Credentials

For quick testing, use:

  • Email: demo@cooee.com
  • Password: Demo@123

Or create your own account via the signup page.


πŸ“Œ Features

πŸ” Authentication

  • βœ… User Registration & Login
  • βœ… JWT-based authentication with secure token storage
  • βœ… Protected routes (Products page accessible only after login)
  • βœ… Automatic token refresh
  • βœ… Secure logout functionality

πŸ“¦ Product Management

  • βœ… Add new products with validation
  • βœ… Edit existing products
  • βœ… Delete products with confirmation
  • βœ… View products in responsive table format
  • βœ… Form validation and error handling

πŸ› οΈ Tech Stack

Frontend

  • React 18 (with Vite for fast builds)
  • Axios for API communication
  • React Hooks (useState, useEffect, useContext)
  • React Router for navigation
  • CSS3 with custom styling
  • Responsive Design (mobile-first approach)

Backend

  • Node.js (v18+)
  • Express.js for REST API
  • MongoDB with Mongoose ODM
  • JWT (jsonwebtoken) for authentication
  • bcrypt for password hashing
  • CORS configuration for secure cross-origin requests
  • dotenv for environment management

---

## πŸ“‘ API Endpoints

### Authentication
| Method | Endpoint | Description | Auth Required |
|--------|----------|-------------|---------------|
| POST | `/api/v1/auth/register` | Create new user account | ❌ |
| POST | `/api/v1/auth/login` | Login existing user | ❌ |
| GET | `/api/v1/auth/me` | Get current user info | βœ… |
| POST | `/api/v1/auth/logout` | Logout user | βœ… |


### Products
| Method | Endpoint | Description | Auth Required |
|--------|----------|-------------|---------------|
| GET | `/api/v1/products` | Get all products (with pagination, search, filter) | βœ… |
| GET | `/api/v1/products/:id` | Get single product by ID | βœ… |
| POST | `/api/v1/products` | Create new product | βœ… |
| PUT | `/api/v1/products/:id` | Update existing product | βœ… |
| DELETE | `/api/v1/products/:id` | Delete product | βœ… |

πŸ‘©β€πŸ’» Author

Sanika Menkudale

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages