Lost and Found System is a web application designed to help IIITA students report lost or found items and facilitate the search for them.
- User authentication: Students can log in and log out securely.
- Report Lost Item: Students can report lost items by providing details such as item name, category, description, and contact information.
- Report Found Item: Students can report found items by providing similar details as reporting lost items.
- Search Items: Students can search for lost or found items based on category and item name.
- CSRF Protection: Implemented Cross-Site Request Forgery (CSRF) protection to prevent unauthorized access.
- Rate Limiting: Implemented rate limiting to prevent abuse or DoS attacks.
- Content Security Policy: Implemented Content Security Policy (CSP) to mitigate XSS attacks.
- File Upload: Implemented file upload functionality for Students to upload images of lost or found items.
- Node.js
- Express.js
- MongoDB
- Mongoose
- bcrypt
- express-session
- multer
- helmet
- crypto
- CORS
- dotenv
- Clone the repository.
git clone https://github.com/rohitkumarpadda/WebD-Project
- Install dependencies:
npm install
. - Set up environment variables by creating a
.env
file and providing values forMONGODB_URI
,SESSION_SECRET
, andPORT
. - Start the server:
npm start
. - Access the application in your browser at
http://localhost:PORT
.
- Log in using your LDAP credentials
- Report a lost or found item by filling out the respective form.
- Once an item is reported missing, the website searches and displays similar items from the found database. For found items, it searches the lost database and displays results.
- Log out when finished.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.