anonnoisy / laravel-importer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Logo

Build Status Total Downloads Latest Stable Version License

Mini Project

What's in the box?

  • User Sign In
  • User Register
  • User Profile Update
  • Excel Import
  • Use Vue 3 with Typescript
  • Use Tailwindcss
  • Use Websockets for realtime notification

System Requirement

  • PHP >= ^8.1
  • Node >= 16.04
  • MySQL 8.0

Installation

  • 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 from storage/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 or php artisan queue:work

Query Question

  • 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;

About


Languages

Language:PHP 54.2%Language:Vue 43.5%Language:TypeScript 1.5%Language:JavaScript 0.5%Language:Blade 0.2%Language:CSS 0.0%