Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Lost & Found Application

A web application for managing lost and found items built with Laravel (Backend) and Vue.js (Frontend).

Prerequisites

  • PHP >= 8.2
  • Node.js >= 16
  • Composer
  • MySQL/MariaDB
  • Git

Installation

Backend Setup

  1. Navigate to backend directory:
cd backend
  1. Install PHP dependencies:
composer install
  1. Create environment file:
cp .env.example .env
  1. Configure your .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password

JWT_SECRET=your_jwt_secret
  1. Generate application key:
php artisan key:generate
  1. Generate JWT secret:
php artisan jwt:secret
  1. Create storage link:
php artisan storage:link
  1. Run database migrations:
php artisan migrate
  1. Start the development server:
php artisan serve

Frontend Setup

  1. Navigate to frontend directory:
cd frontend
  1. Install Node.js dependencies:
npm install
  1. Start the development server:
npm run dev

Usage

  • Backend API will be available at: http://localhost:8000
  • Frontend application will be available at: http://localhost:5173

Features

  • User authentication (Login/Register)
  • Create lost/found item reports
  • Upload images for items
  • Update item status
  • Chat system for item claims
  • Admin dashboard for management

Directory Structure

lostnfound/
├── backend/         # Laravel API
│   ├── app/
│   ├── config/
│   ├── database/
│   └── ...
└── frontend/        # Vue.js application
    ├── src/
    ├── public/
    └── ...

Common Issues

  1. Storage permissions:
chmod -R 775 storage
chmod -R 775 bootstrap/cache
  1. If images don't appear:
php artisan storage:link
  1. Database connection issues:
  • Verify database credentials in .env
  • Ensure MySQL service is running

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages