Skip to content

A simples e-commerce example made with Laravel and Vue.js

Notifications You must be signed in to change notification settings

iagoqueiroz/vue-commerce

Repository files navigation

VUE-COMMERCE

A simple e-commerce project example made with Laravel 5.8 and Vue.js 2

Installation

1. Step

Clone this repository to a folder in your documents

git clone https://github.com/iagoqueiroz/vue-commerce.git && cd vue-commerce

2. Step

Installing dependences

composer install
npm install

3. Step

Copy the .env.example into .env and configure a database of your choice and set the variables in .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=vuecommerce
DB_USERNAME=root
DB_PASSWORD=secret

4. Step

Create a symbolic link of the storage folder

php artisan storage:link

5. Step

Generate the JWT secret that will be used to encrypt the application token

php artisan jwt:secret

6. Step

Execute the migrations and seed the database

php artisan migrate --seed

7. Step

Run the local server and access the url of the project http://localhost:8000

php artisan serve --host=localhost --port=8000

Importing

To import a new product, you need a .csv file with the structure above:

name category price
Product 1 New Category 500,20
Product 2 Eletronics 1200,00
Product 3 Smartphones 999,90

Then you can access the application as a admin user to import the file on the Products page

Imported products need to be handled by the scheduled job

php artisan schedule:run

You can put this on a cronjob

Authenticating

Admin User

email: admin@system.com
password: admin

Normal User

email: user@system.com
password: user

Testing

If you want to check all the tests, just run:

composer test

About

A simples e-commerce example made with Laravel and Vue.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published