Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tanvik-hub/lost-and-found-backend

The backend for the Lost and Found website provides the core server-side functionality to support user authentication, item management, and efficient communication with the database. It is built using the following technologies: Node.js and Express.js: Used for creating a RESTful API to handle requests like user registration, login, posting items,
https://github.com/tanvik-hub/lost-and-found-backend

cors expressjs mongodb mongoose nodejs

Last synced: about 6 hours ago
JSON representation

The backend for the Lost and Found website provides the core server-side functionality to support user authentication, item management, and efficient communication with the database. It is built using the following technologies: Node.js and Express.js: Used for creating a RESTful API to handle requests like user registration, login, posting items,

Awesome Lists containing this project

README

        

# 🛠️ Lost and Found Backend

Backend for the **Lost and Found Website** built with the MERN stack. This project provides APIs to manage user authentication, posting, and searching lost or found items efficiently. Designed to streamline communication between finders and owners in a secure and scalable manner.

---

## 🚀 Features
- 🔐 **Secure User Authentication**: Password hashing with bcrypt.js.
- 📋 **Post Lost/Found Items**: Allows users to post details and images of lost or found items.
- 📂 **Categorized Data Management**: Organizes items into user-friendly categories for efficient navigation.
- 📧 **Contact Integration**: Enables direct communication between finders and owners.

---

## 🛑 API Endpoints

| **Endpoint** | **Method** | **Description** |
|-----------------------------|------------|-------------------------------------------|
| `/api/auth/register` | `POST` | Registers a new user. |
| `/api/auth/login` | `POST` | Logs in an existing user. |
| `/api/items/post` | `POST` | Posts a new lost or found item. |
| `/api/items/search` | `GET` | Searches items based on filters. |
| `/api/items/:id` | `GET` | Fetches details of a specific item. |
| `/api/user/profile` | `GET` | Fetches user details and activity. |

---

## 🛠️ Tech Stack
- **Node.js**: Backend runtime.
- **Express.js**: Framework for building RESTful APIs.
- **MongoDB**: NoSQL database for data storage.
- **Mongoose**: Schema-based modeling for MongoDB.
- **bcrypt.js**: For secure password hashing.

---

GOAL=BUILT THIS FOR COLLEGE PURPOSE.