Lunch Box - Setup Guide
Welcome to the Lunch Box project! Follow these steps to set up and run the application.
Prerequisites
- XAMPP installed
- PHP >= 7.x
- MySQL
1. Clone the Repository
git clone <repository-url>
Or download and extract the project files to C:/xampp/htdocs/lunch_box
.
2. Start XAMPP
- Open XAMPP Control Panel.
- Start Apache and MySQL.
- Open phpMyAdmin.
- Create a new database (e.g.,
lunch_box
).
- Import the SQL file:
- Click on the database.
- Go to Import tab.
- Select the provided
.sql
file (usually in the project folder).
- Click Go.
- Edit the database configuration file (e.g.,
config.php
).
- Set your database name, username, and password:
$db = mysqli_connect('localhost', 'root', '', 'lunch_box');
5. Run the Application
6. Login/Register
- Use the registration page to create a new user account.
- Login with your credentials.
Troubleshooting
- Ensure Apache and MySQL are running.
- Check file permissions.
- Verify database credentials.
You’re ready to use Lunch Box!