Skip to content

myself-alif/eshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

eshop

A laravel react ecommerce app

Installation

  • cd to eshop-frontend
  • write the command "npm install"
  • cd eshop-backend
  • write the command "npm install"
  • write the command "composer install"
  • rename .env.example to .env
  • in the .env file set DB_DATABASE=eshop_db
  • in the .env file paste the following code without brackets, This code enables google sign in (GOOGLE_CLIENT_ID=333635469102-pkc3qftm09oq1jl02s0anskn2halsnie.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=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 GOOGLE_REDIRECT_URL=http://localhost:3000/googleSignInRedirect)
  • run php artisan serve
  • visit http://127.0.0.1:8000/ and click on the generate app key button
  • instead of running "php artisan migrate"
    • open xampp
    • create a db called "eshop_db"
    • import the databse i've added in this repository (this db has products sample & categories which will be shown in the frontend)
  • make sure laravel,react & xampp running/li>
  • visit http://localhost:3000/