Update: If you want to see a cleaner Vuex implementation, visit the vuex branch.
Vuewer is meant to demonstrate basic use of Vue.js in Laravel. It makes use of single-file components embedded into Blade and communicates with the API using Axios. This app will show you examples of parent-child communication, attribute binding, and many more.
Note: To keep it simple, we only make use of Laravel's built-in request-response system. If you want to scale up your API, you'd have to upgrade it to incorporate more features, such as transformers, pagination, or authentication. For starters, check out Incremental APIs series on Laracasts. If you want to jump right in and start coding, check out the awesome Dingo API package which already includes a ton of goodies like JWT Auth and Fractal out of the box.
- Run
git clone https://github.com/alex996/Vuewer vuewer
andcd vuewer
- Also run
php artisan key:generate
to safeguard against cipher exceptions - Create a
.env
file and enter your DB credentials - Finally, run
php artisan migrate --seed
- (Optional) If you want to play with the code, don't forget
npm install