Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anthonygore/vue-laravel-crud

Full-stack Vue + Laravel + Axios CRUD example
https://github.com/anthonygore/vue-laravel-crud

Last synced: about 2 months ago
JSON representation

Full-stack Vue + Laravel + Axios CRUD example

Awesome Lists containing this project

README

        

# vue-laravel-crud

Vue 2.6 + Laravel 6 + Axios CRUD example app

> See https://vuejsdevelopers.com/2018/02/05/vue-laravel-crud/
> Inspiration from [https://github.com/herusdianto/laravel-vue-crud](https://github.com/herusdianto/laravel-vue-crud)

### Installation

1. Clone repo

2. Change to directory

````
cd vue-laravel-crud
````

3. Install dependencies

````
composer install
````

4. Copy .env file

```
cp .env.example .env
```

5. Modify `DB_*` value in `.env` with your database config.

6. Generate application key:

````
php artisan key:generate
````

7. Migrate
````
php artisan migrate
````

8. Install Node modules
````
npm install
````

9. Build

````
npm run prod
````

### Dummy Data

1. Open Tinker

````
php artisan tinker
````

2. Use factory script
````
factory(App\Crud::class, 3)->create();
````