This is a ecommerce project with some basic features.

Related tags

E-commerce ecommerce
Overview

Getting Started

First, clone the repository:

git clone https://github.com/MdMostaFizurRahaman/ecommerce.git

There are two part of this application.

Backend

Install all the dependencies using composer

composer install

Copy the example env file and make the required configuration changes in the .env file

cp .env.example .env

Generate a new application key

php artisan key:generate

Generate jwt secret key

php artisan jwt:secret

Update the database configuration from your .env file

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

Run the database migrations & seed with some initial data (Set the database connection in .env before migrating)

php artisan migrate --seed

Start the development Server with this command

php artisan serve

Your api is now hosted at http://localhost:8000

For broadcasting realtime notification you need to add broadcasting configuration on your .env file

BROADCAST_DRIVER=pusher

PUSHER_APP_ID="YOUR_APP_ID"
PUSHER_APP_KEY="YOUR_APP_KEY"
PUSHER_APP_SECRET="YOUR_APP_SECRET"
PUSHER_APP_CLUSTER="YOUR_APP_CLUSTER"

For queuing notifications you have to change .env to:

QUEUE_CONNECTION=database

Then, generate the queue table, by running this command:

php artisan queue:table

Then, run the migration again:

php artisan migrate

Now, listen for queues by running this command

php artisan queue:work

Moving oders to delivery table, you should run this command:

php artisan move:delivered

This commad will run automatically every day at 12:00 AM (for this server corn set up is required)

To create a super-admin user, you can run the following command:

php artisan generate:super-admin
API Docs

Frontend

For the frontend, cd into the frontend directory and run the following command.

npm install

Then copy the .env.example file and rename it to .env file.

cp .env.example .env

Update the .env file with your credentials.

APP_NAME=Wecommerce
API_URL=http://localhost:8000/api/
API_BASE_URL=http://localhost:8000
WEBSOCKET_KEY="YOUR_PUSHER_KEY"

Now, you can run the frontend applicaton with the following command.

npm run dev

or

npm run start

Now your frontend application will be running on http://localhost:3000/

Build Setup
# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out the documentation.

You might also like...
(Live Link) Extensive ecommerce site with vendors, mods & ability to add to cart without being logged in. Upgraded to Laravel 8.x
(Live Link) Extensive ecommerce site with vendors, mods & ability to add to cart without being logged in. Upgraded to Laravel 8.x

(Live Link) Extensive ecommerce site with vendors, mods & ability to add to cart without being logged in. Upgraded to Laravel 8.x

The Laravel eCommerce DHL Shipping module module calculates the shipping rates based on DHL API for product shipping.

Introduction DHL Shipping Add-on provides DHL Shipping methods for shipping the product. It packs in lots of demanding features that allows your busin

The Laravel eCommerce Image Gallery allows the admin to add/manage images into various galleries and galleries into various groups according to requirements.

The Laravel eCommerce Image Gallery allows the admin to add/manage images into various galleries and galleries into various groups according to requirements.

The Laravel eCommerce Mollie Payment Gateway allows the merchants to integrate Mollie payment gateway to their bagisto Store.

The Laravel eCommerce Mollie Payment Gateway allows the merchants to integrate Mollie payment gateway to their bagisto Store.

Laravel eCommerce Pre Order Extension allows the customers and guest users to pre-order the upcoming product and out of stock products.

Introduction Bagisto Pre-order add-on allows the customer to pre-order products which are not yet available at the online store. With the help of Bagi

Sylius is an Open Source eCommerce platform on top of Symfony.
Sylius is an Open Source eCommerce platform on top of Symfony.

Sylius is an Open Source eCommerce platform on top of Symfony. The highest quality of code, strong testing culture, built-in Agile (BDD) workflow and

Simple Ecommerce Platform on Symfony - E-Learning

Simple Ecommerce Platform on Symfony - E-Learning

Paypal module for Thelia ecommerce solution
Paypal module for Thelia ecommerce solution

PayPal I) Install notes II) Configure your PayPal account III) Module options payments I) Installation Composer WARNING : A console access is required

Build a simple ecommerce website with Laravel.

Simple Ecommerce Build a simple ecommerce website with Laravel. Explore the docs » View Demo · Report Bug · Request Feature Table of Contents Getting

Comments
  • Retrieve

    Retrieve "Server error" when run "npm run generate

    Hi there,

    I'm beginner in nuxt, I've met some error when try to build your project (please check the screenshot) Could you please help me to check the issues and give me some advises?

    My API url: https://shopapi.favistore.com/api My frontend url: https://shop.favistore.com/api

    Thank you so much! image

    opened by muoiplus 5
  • how can i add multiple images in  ProductController?

    how can i add multiple images in ProductController?

    `if ($request->images) {

                foreach ($request->images as $image) {
    
                    $product->addMediaFromBase64($image)->toMediaCollection('product-photo');
    
                }
    

    }`

    I am trying with this but the images are deleted and only the last one is left, if someone can help me I would appreciate it

    opened by black10manda 1
Owner
Md Mostafizur Rahman
Software Engineer | Fullstack Developer | Microservices | Node.js | React.js | PHP | Laravel | Vue.js
Md Mostafizur Rahman
An eCommerce website is an online store where you can buy or sell products online. An eCommerce offers a professional online store builder that helps you launch your eCommerce business quickly and successfully.

An eCOMMERCE-SITE An eCommerce website is an online store where you can buy or sell products online. An eCommerce offers a professional online store b

UTTKARSH PARMAR 2 Aug 8, 2022
Antvel is an ecommerce project written in Laravel 5.* intended for building a friendly eStore either for startups or big companies.

Antvel is an ecommerce project written in Laravel 5.* intended for building a friendly eStore either for startups or big companies.

Antvel - Official 650 Dec 28, 2022
Open Source eCommerce Platform on Symfony

Sylius is an Open Source eCommerce platform on top of Symfony. The highest quality of code, strong testing culture, built-in Agile (BDD) workflow and

Sylius eCommerce 7.2k Jan 3, 2023
PrestaShop module that allows an ecommerce/brand to display its physical retailers in a map

PrestaShop module that allows an ecommerce/brand to display its physical retailers in a map Features Free of charge: instead of using pa

Darío Scattolini 3 Apr 15, 2022
A Free and Opensource Laravel eCommerce framework built for all to build and scale your business.

Bagisto is a hand tailored E-Commerce framework built on some of the hottest opensource technologies such as Laravel (a PHP framework) and Vue.js a progressive Javascript framework.

Bagisto 5k Jan 5, 2023
Shopware 6 is an open source ecommerce platform based on a quite modern technology stack that is powered by Symfony and Vue.js.

Shopware 6 Realize your ideas - fast and without friction. Shopware 6 is an open source ecommerce platform based on a quite modern technology stack th

Shopware 2.1k Dec 31, 2022
Size chart plugin for Sylius ecommerce platform.

Madcoders Sylius Size Chart Plugin Features upload size chart files (for example for shoes, t-shirts and similar products) match size charts by rules

MADCODERS 4 Oct 29, 2021
Payu payment gateway for bagisto laravel ecommerce open source platform

Bagisto Payu Payment Gateway Payu is a popular payment gateway in india. This package provides a additional strong help for the user to use the payu p

Saju G 3 Dec 14, 2021
Ecommerce website for Sales of Product according to their categories and Tags with pictures

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Muhammad Fahad 1 Nov 8, 2021
Laravel eCommerce headless APIs allow you to experience seamless and easily scalable storefront performance.

Bagisto GraphQL API Laravel eCommerce headless APIs allow you to experience seamless and easily scalable storefront performance. An open-source and Gr

Bagisto 30 Dec 29, 2022