https://github.com/fvucemilo/laravel_ecommerce
E-commerce project with Laravel and Vue.js
https://github.com/fvucemilo/laravel_ecommerce
Last synced: 19 days ago
JSON representation
E-commerce project with Laravel and Vue.js
- Host: GitHub
- URL: https://github.com/fvucemilo/laravel_ecommerce
- Owner: fvucemilo
- License: mit
- Created: 2022-11-19T12:08:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T19:01:14.000Z (almost 3 years ago)
- Last Synced: 2025-02-23T06:46:30.374Z (over 1 year ago)
- Language: PHP
- Size: 280 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel E-commerce Website
E-commerce application built with Laravel, Vue.js, Tailwind.css and Alpine.js.
## Installation
Make sure you have environment setup properly. You will need MySQL, PHP8.1 and composer.
### Install Laravel Website + API
1. Download the project (or clone using GIT)
2. Copy `.env.example` into `.env` and configure database credentials
3. Navigate to the project's root directory using terminal
4. Run `composer install`
5. Set the encryption key by executing `php artisan key:generate --ansi`
6. Run migrations `php artisan migrate --seed`
7. Start local server by executing `php artisan serve`
8. Open new terminal and navigate to the project root directory
9. Run `npm install`
10. Run `npm run dev` to start vite server for Laravel frontend
### Install Vue.js Admin Panel
1. Navigate to `backend` folder
2. Run `npm install`
3. Copy `backend/.env.example` into `backend/.env`
4. Make sure `VITE_API_BASE_URL` key in `backend/.env` is set to your Laravel API host (Default: http://localhost:8000)
5. Run `npm run dev`
6. Open Vue.js Admin Panel in browser and login with
```
admin@example.com
admin123
```