Skip to content

LPF33/laravel-vue-csv-app

Repository files navigation

About project:

  • Tabular representation of data from CSV file
  • Edit and add data
  • Visualize data with a Pie-Chart
  • Upload & Download CSV file.

Tech Stack

Run project local

  1. Run it with Docker:

    • git clone git@github.com:LPF33/laravel-vue-csv-app.git
    • Docker build & run
  2. Or following components must be installed locally:

$ git clone git@github.com:LPF33/laravel-vue-csv-app.git
$ cd laravel-vue-csv-app
$ npm install
$ composer install
$ composer run-script post-root-package-install & composer run-script post-create-project-cmd
$ npm run build
$ php artisan serve

Development

$ php artisan serve
$ npm run dev

Linter

$ composer run-script lint 
$ npm run lint

Deployment

How to install Vue 3 in Laravel 9 with Vite

  1. Install Laravel 9
  2. Install npm Dependencies
  3. Install Vue 3 (in folder resources/js lives your Vue App)
    npm install vue@next vue-loader@next
  4. Install Vite Plugin and set vite.config.js
    @vitejs/plugin-vue
  5. Connect Laravel blade file and use vite directive to add assets
  6. Start development servers

https://laravel.com/docs/9.x/vite

https://vitejs.dev/config/

Laravel Routes

  • Web: In folder routes/web.php
    • "/" (GET)
    • "/csv/read" (GET)
    • "/csv/write" (POST)
    • "/csv/add" (POST)
    • "/csv/upload" (POST)
    • "/csv/export" (GET)