Skip to content

kushal555/E-commerce

Repository files navigation

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

About

Laravel + VueJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published