Skip to content

Dheetchana04/LostAndFound-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฆ Lost & Found Management System

A full-stack web application to report, track, and recover lost or found items, built using ASP.NET Core Web API + MVC + SQL Server.


๐Ÿš€ Key Highlights

  • ๐Ÿ” Secure authentication system
  • ๐Ÿ‘ฅ Role-based access (User & Admin)
  • ๐Ÿ“ฆ Complete item lifecycle tracking (Lost / Found โ†’ Collected)
  • ๐Ÿ–ผ Image upload and display functionality
  • ๐Ÿงฉ Clean architecture (MVC + Web API separation)
  • ๐Ÿ“Š Admin dashboard with reports

๐Ÿ›  Tech Stack

Backend (API)

  • ASP.NET Core Web API (.NET 8)
  • Entity Framework Core
  • SQL Server

Frontend (UI)

  • ASP.NET Core MVC (Razor Views)
  • HttpClient (API Integration)

Database

  • SQL Server

๐Ÿง  System Architecture

  • MVC frontend communicates with Web API using HttpClient
  • Web API handles business logic and database operations
  • SQL Server stores user and item data
  • Images stored in server (wwwroot/uploads)

Flow: User โ†’ MVC โ†’ API โ†’ Database


๐Ÿ‘ฅ Roles

๐Ÿ‘ค User

  • Register & Login
  • Report Lost / Found items
  • Upload item images
  • View all items
  • Manage their own reports
  • Mark item as Collected

๐Ÿ›  Admin

  • View all items
  • Access dashboard reports
  • Monitor system activity

โœจ Features

๐Ÿ“ฆ Item Management

  • Add Lost / Found item
  • Edit item details
  • Update item status
Lost / Found โ†’ Collected
  • Only item owner can update status

๐Ÿ“ท Image Upload

  • Upload image while reporting item
  • Stored in:
wwwroot/uploads/items/
  • Displayed in UI

๐Ÿ“‹ Item Listing

  • View all items

  • Displays:

    • Image
    • Item Name
    • Location
    • Status
    • Posted User

๐Ÿ” Search & Filtering

  • Search by item name
  • Filter by location and date

๐Ÿ” Authentication & Authorization

  • Secure user registration and login
  • Role-based access control
  • User-specific data handling

๐Ÿ“ธ Screenshots

๐Ÿ” Login Page

Login

๐Ÿ“Š Admin Dashboard

Dashboard

๐Ÿ“‘ Reports (Admin)

Reports

๐Ÿ  Home - Items Listing

Home

โž• Report Item

Report Item

๐Ÿ“‹ My Reports

My Reports


๐Ÿ“ก API Endpoints

๐Ÿ” Auth

Method Endpoint Description
POST /api/Auth/register Register user
POST /api/Auth/login Login

๐Ÿ“ฆ Item

Method Endpoint Description
GET /api/Item Get all items
POST /api/Item Add new item
GET /api/Item/{id} Get item by ID
PUT /api/Item/{id} Update item
PUT /api/Item/status/{id} Mark as collected
GET /api/Item/userlist Get user items

๐Ÿ‘ค User

Method Endpoint Description
GET /api/User/{id} Get user details

๐Ÿ—„ Database Schema

Users Table

  • UserId
  • Name
  • Email
  • PhoneNumber
  • Password
  • Role

Items Table

  • ItemId
  • ItemName
  • Description
  • Location
  • Date
  • Status (Lost / Found / Collected)
  • ImagePath
  • UserId (FK)

๐Ÿš€ How to Run

Step 1 โ€” Run API

  1. Open LostAndFound.API
  2. Run project (F5)
  3. API runs at:
https://localhost:7215
  1. Swagger:
https://localhost:7215/swagger

Step 2 โ€” Run MVC

  1. Open LostAndFound.Web
  2. Run project (F5)
  3. Open:
https://localhost:xxxx/Item

โš™๏ธ Configuration

API Base URL (MVC)

File:

Services/ApiService.cs
client.BaseAddress = new Uri("https://localhost:7215/");

Database Connection

File: appsettings.json

"ConnectionStrings": {
  "DefaultConnection": "Server=.;Database=LostAndFoundDB;Trusted_Connection=True;"
}

๐Ÿ› Troubleshooting

  • Ensure API is running before MVC
  • Check API Base URL
  • Verify image paths (/uploads/items)
  • Check database connection

๐Ÿ”ฎ Future Enhancements

  • JWT Authentication
  • Email notifications
  • Real-time updates (SignalR)
  • Deployment on Azure
  • Mobile responsive UI

๐Ÿ’ก Project Objective

To build a scalable system that simplifies lost and found item tracking with structured workflows and user-friendly interaction.

๐Ÿ‘ฉโ€๐Ÿ’ป Author

Dheetchana K Final Year CSE Student โญ If you like this project, give it a star!

About

A full-stack Lost & Found Management System built with ASP.NET Core Web API and MVC to report, track, and recover items with image upload and role-based access.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors