Handpickd is a community-driven platform that celebrates creativity and craftsmanship. Our marketplace provides a space for artisans to showcase their handmade goods and for enthusiasts to discover unique, handcrafted items. Built as a school project using Laravel, Alpine.js, and MySQL, Handpickd is a testament to the power of community and craftsmanship.
Handpickd_Demo.mp4
- ๐ Table of Contents
- ๐ Project Overview
- ๐ง Requirements
- โ๏ธ Installation Instructions
- ๐ Page Breakdown
- โจ Features & Functionality
- ๐งฐ Built with
- ๐ Getting Started
- ๐ Known Issues
- ๐ Authors
Handpickd offers an alternative to mass-produced goods by highlighting unique, handcrafted items. It's a digital homage to the tradition of artisanry, designed to connect makers with those who appreciate the value of bespoke creations.
Handpickd requires the following tools to run:
- NodeJS: A JavaScript runtime environment that executes JavaScript code outside of a browser.
- XAMPP: A free and open-source cross-platform web server solution stack package, mainly used for local development. It also comes preinstalled with MySQL and PHP, which are required for Handpickd.
- Composer: A tool for dependency management in PHP, allowing you to declare the libraries your project depends on.
- Laravel: Version 10, a robust PHP framework for web application development. Which will be installed via Composer
However, because the installation of Laravel and composer can be error-prone when installed via Powershell, it is highly recommended to install it via Git Bash instead.
First, install NodeJS from the link above. Once installed, open up a terminal and run the following command to verify that it has been installed correctly:
node -v
If the command returns a version number, then NodeJS has been installed correctly.
Next, install XAMPP from the link above. Once installed, open up the XAMPP Control Panel and start the Apache and MySQL services. Once started, click on the "Admin" button for MySQL. This will open up a new tab in your browser. Click on the "New" button on the left-hand side and create a new database called "handpickd_db". Once created, click on the "Import" button on the top navigation bar. Click on the "Choose File" button and navigate to the handpickd_db.sql
file in the root folder of this project. Once selected, click on the "Go" button on the bottom right-hand side. This will import the database into your local MySQL server. Below you will find pictures detailing the steps above.
Note: The installation of Composer and Laravel will be done via Git Bash, so make sure to install it before proceeding. Errors may occur if you try to install it via Powershell.
Next, install Composer from the link above. Once installed, open up a terminal and run the following command to verify that it has been installed correctly:
composer -v
If the command returns a version number, then Composer has been installed correctly.
Next, install Laravel via Composer. Open up a terminal and run the following command:
composer global require laravel/installer
Lastly, open up the php.ini
file in the C:\xampp\php
directory or open the XAMPP Control Panel and click on the Config Button in the Apache Section. Once opened, use STRG + F to search for extension=gd
. Once found, remove the semicolon in front of it. It should look like this:
;extension=gd
To
extension=gd
This is very important, as it will allow the application to send emails to users when they register, reset their password, or purchase a product.
-
Homepage: Introduces the platform and features a search bar for finding products, along with a showcase of featured items and categories.
-
Login/Registration: Allows new users to join the community and existing members to access their accounts.
-
Products: Enables registered artisans to list new items, complete with detailed descriptions and images.
- Browser Products: Allows users to browse products by category, price range and best reviews.
- Search Products: Enables users to search for products by keyword.
- Product Details: Provides in-depth information about each product, including images, pricing and reviews. It also allows a user to post/update their review and add the product to their cart.
-
Cart: Enables users to view and manage the items they intend to purchase.
- Checkout: Allows users to complete their purchase and receive a confirmation email.
-
Dashboard: Provides a personalized overview of the artisan's pending and completed orders.
-
FAQ: Provides answers to frequently asked questions about the platform.
-
Profile: Offers insights into the artisans' backgrounds, their product range, and customer reviews.
- Add Product: Allows artisans to add new products to the marketplace.
- Edit Profile: Allows users to update their profile information and add new products.
- Edit Product: Enables artisans to update their product information and images.
- Delete Profile: Enables users to remove their profile from the marketplace.
- Delete Product: Allows artisans to remove their products from the marketplace.
- Check Orders: Allows users to view their past orders and their status.
-
Responsive Design: Ensures a consistent user experience across various devices.
-
User Authentication: Differentiates between artisan and buyer accounts for a personalized experience.
-
Database Integration: Maintains a secure record of products, user profiles, and transactions.
-
Search and Filter System: Helps users find products that match their interests.
-
Shopping Cart & Checkout: Allows users to reserve items they intend to purchase.
-
User Reviews and Ratings: Provides feedback on products and artisans, fostering a trustworthy community.
-
Product Posting: Allows Artisans to create new products and post them to the marketplace.
- Tailwind CSS: Tailwind is a utility-first CSS framework that provides a comprehensive set of styling options. It's highly customizable and easy to use.
- Alpine.js: A lightweight JavaScript framework for building interactive components. It's easy to learn and integrates seamlessly with Tailwind.
- Heroicons: A set of free SVG icons from the makers of Tailwind CSS that are easy to customize and use in any project. They're designed to pair well with Tailwind.
- Laravel: A PHP framework for building web applications. It's fast, secure, and easy to use. It also provides a robust set of tools for managing database migrations and seeding. Laravel is the foundation of Handpickd. It's used to create the backend API and handle routing.
- MySQL: A relational database management system that's fast, reliable, and easy to use. It's used to store data for Users, Products, and Transactions.
- Laravel Breeze: A lightweight authentication scaffolding for Laravel. It's used to create the authentication system for Handpickd. It provides a simple, minimalistic UI for user registration and login. It also includes password reset functionality.
- Gmail: A free email service provided by Google. It's used to send emails to users when they register, reset their password, or purchase a product.
- Pest: Pest is a testing framework for PHP. It's simple, elegant, and a pleasure to use. It's used to test the Models and Controllers.
To run Handpickd locally, follow these instructions:
First, open up XAMPP and start both the Apache and the MySQL server.
Next, navigate to the root folder of the project and open up a terminal. Run the following commands:
# Clone the repository
git clone https://github.com/PaperTurtle/handpickd.git
# Navigate to the repository
cd handpickd
# Install dependencies
npm install
composer install
# Set up the environment
cp .env.example .env
php artisan key:generate
# Create a symbolic link to the storage folder (for images)
php artisan storage:link
# Serve the application
php artisan serve // (Terminal 1)
npm run dev // (Terminal 2)
Once the application is running, you can access it at http://127.0.0.1:8000.
When you run the application, an error may occur stating that an sql driver does not exist. To fix this, download these two files: php_pdo_sqlsrv_82_ts_x64
and php_sqlsrv_82_ts_x64
from the Microsoft SQL Drivers. Place them in the following directory: C:\xampp\php\ext
. Once placed, open up the php.ini
file in the C:\xampp\php
directory or open the XAMPP Control Panel and click on the Config Button in the Apache Section and add the following line to the bottom of the file:
extension=php_pdo_sqlsrv_82_ts_x64
extension=php_sqlsrv_82_ts_x64
Once added, save the file and restart the Apache and MySQL services in the XAMPP Control Panel. Once restarted, the application should run without any issues.
Author | Role | Project Responsibilities |
---|---|---|
Seweryn Czabanowski | Software Developer | Product Listings, Products Details, Products CRUD, Dashboard, Checkout Success |
Loran Heinzel | Software Developer | Login Page, Register Page, Footer, Welcome Page |
Tobias Neubert | Software Developer | Checkout Index, Process Pages, Profile Page, FAQ Page |