Ensure your system meets the following requirements:
- Operating System: Ubuntu 16.04 LTS or higher / Windows 7 or higher (WAMP / XAMPP)
- Server: Apache 2 or NGINX
- RAM: 4 GB or higher
- PHP: 7.4 or higher
- Database:
- For MariaDB users: 10.2.7 or higher
- For MySQL users: 5.7.23 or higher
- Node.js: 8.11.3 LTS or higher
- Composer: 1.6.5 or higher
Download and install Composer from the official website.
Open your terminal and run:
composer create-project --prefer-dist laravel/laravel PharmaBuy
This command will create a new Laravel project named PharmaBuy
.
- Create a new database for your application.
- Configure the
.env
file in the root directory of your Laravel project with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password
After installation, publish the assets and configurations:
php artisan vendor:publish --all
Run the migrations and seed the database:
php artisan migrate
php artisan db:seed
Update the following settings in your .env
file:
APP_URL=http://your-domain.com
ADMIN_EMAIL=admin@example.com
ADMIN_NAME=Admin
Create a symbolic link from public/storage
to storage/app/public
:
php artisan storage:link
Start the development server:
php artisan serve
Access your application at http://localhost:8000
.
- Multi-Vendor Marketplace: Allow multiple sellers to register and sell their products on your platform.
- Point of Sale (POS): Manage both online and physical stores seamlessly.
- SaaS-Based eCommerce Solution: Enable users to start and grow their online businesses with a scalable solution.
- Mobile App Integration: Improve accessibility with a Flutter-based mobile app.
PharmaBuy is a beauty and pharmaceutical eCommerce website developed using PHP, Laravel, and Node.js. This platform allows users to browse and purchase products, manage their carts, and track orders, while admins can oversee customers, manage products, and analyze sales.
- Home Page with Banner - Displaying an advertising banner.
- Featured Products Section - Quick view and add-to-cart functionality.
- Product View Page - Detailed product descriptions and images.
- Shopping Cart - Easy checkout process.
- User Authentication - Sign-in and Sign-up pages.
- User Profile - View cart, orders, and wishlist.
- Mobile Responsive - Fully optimized for mobile, tablet, and desktop.
- Admin Dashboard - View customers, revenue, and best-selling items.
- User Orders Management - Track and manage customer orders.
- Product Management - Add, update, and delete products.
- Admin Account Handling - Secure access for administrators.