This is a Laravel application for an e-commerce website that sells plants and plant-related products. It provides an admin panel for managing products and a front-end for displaying and purchasing products.
- Product Management: Administrators can create, edit, and delete products through an intuitive admin panel.
- Product Listing: The website displays a grid of product cards with images, names, descriptions, and prices.
- Product Details: Users can view detailed information about each product, including its description, price, and color.
- Profit Margin Calculation: The application calculates the final price for products based on a configurable profit margin percentage.
- Authentication and Authorization: The application includes an authentication system and likely has different user roles or permissions for managing products.
- Roles and Permissions: The application has a role-based access control system for managing employees. Administrators can assign roles and permissions to employees, allowing them to perform specific actions within the application.
- Laravel (PHP web framework)
- Blade (Laravel's templating engine)
- Tailwind CSS (utility-first CSS framework)
- MySQL (or any other database supported by Laravel)
- Laravel Eloquent ORM (for interacting with the database)
- Spatie Laravel Permission (for managing roles and permissions)
- Clone the repository:
git clone https://github.com/PS213073/project-5.git
- Install the dependencies:
cd plant-ecommerce
composer install
npm install
- Configure the environment variables:
cp .env.example .env
-
Update the .env file with your database credentials and other necessary configurations.
-
Generate the application key:
php artisan key:generate
- Run the database migrations:
php artisan migrate
- Compile the front-end assets:
npm run dev
- Start the development server:
php artisan serve
- The application should now be accessible at http://localhost:8000.
For testing purposes, you can use the following credentials:
-
Normal User:
- Username: test@test.nl
- Password: password
-
Admin User:
- Dashboard URL: http://127.0.0.1:8000/admin/dashboard
- Username: admin@admin.com
- Password: password