SPA Online FakeStore on Laravel and Vue where you can order products from home. With the ability for the admin to track statistics on sales and top-selling products. Frequently requested data is cached using Redis. CRUD for products, orders.
Frontend: Vue.js 3, TypeScript, Pinia, Chart.js, VueRouter, Axios, UIkit, Vite, ESlint
Backend: Laravel 10, PHP 8.3, Redis, MySQL
Docker, Nginx, PHP:8.3-FPM
- Admin panel with the ability to manage products, view statistics and orders, products in the form of lists and tables.
- Displaying monthly statistics on orders and best-selling products using chart.js
- RESTful API with roles. Admin panel
- Deploying an application via docker
- SPA
- ERP
- Caching frequently accessed data using redis
- The project is covered with tests
Clone the project
git clone https://github.com/Denis10491/store
Go to the project directory
cd store
Install dependencies
composer install
npm install
Copy from .env.example
to .env
and configure the configurations described above
Connect image storage
php artisan storage:link
Run docker compose
docker-compose up -d
Generate application key
docker-compose exec app php artisan key:generate
Run migrations
docker-compose exec app php artisan migrate:fresh
Run seeds
docker-compose exec app php artisan db:seed --class=DatabaseSeeeder
Run a local server for the client side
npm run dev
Add fakestore to hosts in OS Open project: http://fakestore