Giter Club home page Giter Club logo

vue-commerce's Introduction

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: [email protected]
password: admin

Normal User

email: [email protected]
password: user

Testing

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

composer test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.