/pride-of-lombok

A Lombok Merchandise E-Commerce Website

Primary LanguagePHPApache License 2.0Apache-2.0

Pride of Lombok

Pride of Lombok can be called an e commerce website which sells many marchendises from Lombok Island. This website has been made for completing platform based application course project.

Features

  1. Login, Logout and Register
  2. Authentication
  3. Search Product
  4. Save to Favorite
  5. Purchase marchendise (At the moment this feature not implementing the payment process)
  6. View purchase history
  7. Edit profile
  8. Create, Update, Delete Product (Admin, the default admin account is viewed in installation section)

Installation and Usage

At the beginning, you can clone this repository and you have to make sure that your machine has been installed with PHP (8.2.4), composer (2.5.8) and database (This project used XAMPP as a server). After that you can update this repository by using

composer update

Generate the env file and the key for this project (Command bellow used in linux, in windows probably you can use .env-example file and copy it as .env file)

cp .env-example .env
php artisan key:generate

in the project itself (.env file), you can then change the database connection based on yours. Mine used this

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=pride_of_lombok
DB_USERNAME=root
DB_PASSWORD=

And then you can make a migration and seed the database using this

php artisan migrate
php artisan db:seed

You can serve the laravel by using

php artisan serve

The default admin account is in the seeder file at ./database/seeder/DatabaseSeeder.php. You can login by that in login menu and you can do the Create, Update and Delete products.

'username' => 'admin123'
'email' => "admin123@gamil.com"
'password'=> bcrypt("admin123")

Screenshots

image image image image image image