Bank Sampah is a Laravel web application developed as part of the course "Mata Kuliah Pemrograman Web 2." It provides features related to waste management and recycling. This document outlines the necessary steps to install and run the application locally.
- PHP >= 7.3
- Composer
- Node.js & npm
- MySQL or a compatible database system
Follow these steps to install and run the Bank Sampah project on your local machine.
Clone the repository to your local machine using Git.
git clone https://github.com/yourusername/bank-sampah.git
cd bank-sampah
If you haven't already installed Composer, you can download and install it using the instructions on the official website.
Run the following command to install the PHP dependencies:
composer install
First, install the Node.js dependencies:
npm install
Then, compile the assets:
npm run dev
Copy the example environment file and make any necessary adjustments to your local environment:
cp .env.example .env
Generate a unique application key:
php artisan key:generate
Ensure that your database connection settings are correctly configured in the `.env` file. Then, run the migrations to create the necessary tables:
php artisan migrate
Finally, serve the application locally:
php artisan serve
The application should now be accessible at `http://127.0.0.1:8000\`.