Giter Site home page Giter Site logo

e-commerce's Introduction

E-commerce Using Laravel and VueJS

This source code contain the below functionalities

  1. Login using JWT auth
  2. Show all the products (Listing product)
  3. Products listing should have pagination
  4. Provide a form to add the Product and also need a way to upload the product image

Requirements

Setting up the project

  1. Clone the repository
  2. Run composer install
  3. Configure Laravel directory permissions (documentation)
  4. Create a database and setup the database configuration inside .env
  5. Run php artisan key:generate
  6. Run php artisan migrate
  7. If you have the below error while doing migration Database Error Just put the below code in your AppServiceProvider.php file
    use Illuminate\Support\Facades\Schema;
    
    public function boot()
    {
        Schema::defaultStringLength(191);
    }
  8. Delete the all tables from Database and run again the command php artisan migrate
  9. Run php artisan jwt:secret
  10. Run npm install
  11. Use php artisan tinker to create a test user:
App\User::create(['name' => 'Test User', 'email' => '[email protected]', 'password' => Hash::make('Password01')])
  1. Setup the configuration file for VueJS, So just need to create env.js file inside the resources/assets/js/ Directory. Put the below code in it and replace your folder name of project
const configuration = {
    api_url : "http://localhost/{project-directory-name}/public/api",
    api_version : '/v1'
}

export default configuration

Build

  • Once you have made changes to the JavaScript or SCSS files you will want to run npm run dev or npm run production

Import

  • Please download the sampleImport Template and put your data according to columns and try to upload products

e-commerce's People

Contributors

kushal555 avatar

Stargazers

Felipe Albuquerque de Almeida avatar blalyassine avatar  avatar

Watchers

James Cloos avatar  avatar

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.