How to create an e-commerce application using Laravel and Vue
Clone or download
neoighodaro Merge pull request #1 from chiefoleka/master
Added passport installation to the readme file.
Latest commit 07c506f Apr 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app first commit Apr 17, 2018
bootstrap first commit Apr 17, 2018
config first commit Apr 17, 2018
database first commit Apr 17, 2018
public first commit Apr 17, 2018
resources first commit Apr 17, 2018
routes first commit Apr 17, 2018
storage first commit Apr 17, 2018
tests first commit Apr 17, 2018
.env.example first commit Apr 17, 2018
.gitattributes first commit Apr 17, 2018
.gitignore first commit Apr 17, 2018
artisan first commit Apr 17, 2018
composer.json first commit Apr 17, 2018
composer.lock first commit Apr 17, 2018
package.json first commit Apr 17, 2018
phpunit.xml first commit Apr 17, 2018
readme.md Added passport installation to the readme file. Apr 29, 2018
server.php first commit Apr 17, 2018
webpack.mix.js first commit Apr 17, 2018
yarn.lock first commit Apr 17, 2018

readme.md

Building an E-commerce platform with Laravel and Vue

This is a demo application showing how to build an e-commerce platform using Laravel and Vue. You can read about how it was created on Pusher's blog.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software.

  • Git.
  • PHP.
  • Composer.
  • Laravel CLI.
  • A webserver like Nginx or Apache.
  • A Node Package Manager ( npm or yarn ).

Install

Clone the git repository on your computer

$ git clone https://github.com/neoighodaro-articles/e-commerce-laravel-vue.git

You can also download the entire repository as a zip file and unpack in on your computer if you do not have git

After cloning the application, you need to install it's dependencies.

$ cd e-commerce-laravel-vue
$ composer install

Setup

  • When you are done with installation, copy the .env.example file to .env

    $ cp .env.example .env

  • Generate the application key

    $ php artisan key:generate

  • Add your database credentials to the necessary env fields

  • Migrate the application

    $ php artisan migrate

  • Install laravel passport

    $ php artisan passport:install

  • Seed Database

    $ php artisan db:seed

  • Install node modules

    $ npm install

Run the application

$ php artisan serve

Built With

  • Laravel - The PHP framework for building the API endpoints needed for the application
  • Vue - The Progressive JavaScript Framework for building interactive interfaces

Acknowledgments

  • Laravel - The excellent documentation explaining how to get started with Laravel and Laravel Passport made it easy to provide a step by step guide for beginners to follow the application
  • Vue - Concise documentation