Thanks!
Starter application (Vue.js, Laravel, Dingo, JWT)
Vue.js Starter Project
Hi,
For my own projects and for you all to try out, I've created 2 new repo's on Github that should serve as a nice example on what a single page application made in Vue.js could look like when using a backend API.
1. Frontend
- Vue.js 0.12.15
- vue-router
- vue-resource
- vueify
- envify to accomodate builds in different environments
- Laravel Elixir for Gulp magic
- Bootstrap 3.3.5 styling
- Sass custom styles (mostly Laravel Spark styles)
2. Backend
- Laravel 5.1
- SQlite or any other DB backend you prefer. SQLite is the default to make testing this out easier
- Dingo API component for Laravel
- JWT Authentication middleware
- Sample REST api for Dogs (woof woof) - CRUD style
The backend is completely optional, but if you would like to test the entire starter app including authentication, it will be easier to first try and install this instead of immediately diving in and creating your own API. That's the sole reason for the Laravel API to exist.
3. Installation and requirements
Instructions for installation are kept as simple as possible If you have the basic requirements you can be up and running in 2 minutes.
3.1 Frontend:
node.js with npm
3.2 Backend:
PHP and Composer.
4. License
Both projects are under the MIT license. Bend, break and profit at will.
5. Disclaimer
Both repositories are still very much a work in progress, but it should be a good starting point for anyone trying to get set up as quickly as possible. Things like refreshing the JWT every once in a while are not implemented, so you will be logged out after an hour (default setting) and you will need to re-authenticate.
6. Contributing
Pull requests are encouraged and welcomed.
Cheers, K!
Please or to participate in this conversation.