Laracoffee is a web application built using the Laravel framework that allows users to browse and order coffee products online.
- Authentication Page: This page allows admin to log in.
- Dashboard Page: Admin have access to a dashboard for an overview of system activities.
- Customer Page: Provides a list of registered customer details for admin to view.
- Log Transaction Page: Admin can monitor transaction logs.
- Product Page: Admin can view, add, edit, and remove product details.
- Product Review Page: Admin can view product reviews.
- Profile Page: Admin can edit their profile data and change passwords if needed.
- Order Page: Admin can manage user orders, including changing order status (rejected, done, approved).
- Order History: Admin can review the history of orders.
- Authentication and Registration Page: Users can log in or register for an account.
- Home Page: The main landing page for users.
- Point Page: Users can track loyalty points earned through transactions.
- Profile Page: Users can edit their profile data and change passwords if needed.
- Product Page: Users can purchase products, view product details, and leave product reviews (after completing the purchase).
- Order Page: Users can view and manage their shopping cart, including editing and canceling orders.
- Order History: Users can review their order history.
To run Laracoffee locally, follow these steps:
-
Clone this repository:
git clone https://github.com/snykk/Laracoffee.git
-
Change to the project directory
cd laracoffee
-
Install the project dependencies
composer install npm install
-
Copy the .env.example file to .env and configure your environment variables, including your database settings and any other necessary configuration.
copy .env.example .env
-
Generate an application key
php artisan key:generate
-
Create a symbolic link for the storage directory
php artisan storage:link
-
Set the filesystem disk to public in the .env file
FILESYSTEM_DISK=public
-
Migrate the database
php artisan migrate
-
Seed the database with sample data (optional):
php artisan db:seed
-
Start the development server
php artisan serve
-
Access the application in your browser at http://localhost:8000
- Visit the website and register for an account.
- Browse the available coffee products, add them to your cart, and proceed to checkout.
- Make a test order to see the order processing workflow.
- Access the admin panel by log in with admin credentials (if seeded).
- Manage products and orders through the admin panel.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to your fork:
git push origin feature-name
. - Create a pull request on the original repository.
This project is licensed under the MIT License.
Feel free to explore the application and give it a try yourself. If you have any questions or encounter any issues, please don't hesitate to reach out. Your feedback is greatly appreciated. Happy exploring!!!