- User Sign In
- User Register
- User Profile Update
- Excel Import
- Use Vue 3 with Typescript
- Use Tailwindcss
- Use Websockets for realtime notification
- PHP >= ^8.1
- Node >= 16.04
- MySQL 8.0
- Clone this repository
- Run
cp .env.example .env
- Create new MySQL database and adjust to
.env
- Run
composer install
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan db:seed
it will be import data fromstorage/app/dataset
(Optional) - Run
npm install
- Need few new terminal to run the services
- Run
npm run dev
- Run
php artisan serve
- Run
php artisan websockets:serve
- Run
php artisan queue:listen
orphp artisan queue:work
- Tampilkan hari, total transaksi, total perolehan, dimana total perolahan yang lebih dari 5 di hari itu:
SELECT DATE_FORMAT(transaction_date, '%Y-%m-%d') hari, COUNT(id) as total_transaksi, SUM(total_purchase_price) AS total_perolehan FROM sales GROUP BY DATE_FORMAT(transaction_date, '%Y-%m-%d') HAVING COUNT(id) > 5 ORDER BY hari DESC;