anchor
anchor copied to clipboard
Scaffolds for SPA and API using laravel 5.8.x and nuxt 2.x
Anchor
This package will help you create an SPA front-end and API back-end application built with laravel v 5.8 and nuxtjs 2.6 popular community packages as a base.
Version Information β¨
| Version | Illuminate | Status | PHP Version |
|---|---|---|---|
| 1.0 | 5.8.x - 5.x.x | Active support :rocket: | >= 7.1.3 |
Packages used for API π¦
Popular community packages used so far are
- laravel/passport
- fideloper/proxy
- owen-it/laravel-auditing
- spatie/laravel-cors
- spatie/laravel-fractal
- spatie/laravel-permission
- barryvdh/laravel-debugbar
Packages used for Front-end π¦
- nuxt- v2.4.0
- axios- v0.18.0
- @nuxtjs/router- v1.0.1
- bootstrap- v4.1.1
- bootswatch- v4.3.1
- dotenv- v5.0.1
- font-awesome- v4.7.0
- jquery- v3.4.0
- js-cookie- v2.2.0
- sweetalert2- v7.19.3
- vform- v1.0.0
- vue-i18n- v7.6.0
Installation π
Dependency
# For laravel
$ composer install
$ php artisan migrate
$ php artisan passport:install
For production deployment of passport - please check laravel documentation for below command
$ php artisan passport:keys
For creating new modules
$ php artisan make:module <Modulename>
For publishing it's migrations / seeds / config files
$ php artisan module:publish <Modulename>
For nuxtJS - install dependencies and build SPA
$ npm install
$ npm run build
Note on the API - Over the laravel end,
- We are using Repository and Module pattern. More information On this blog post
- To get a basic idea on how the Modules are being used, please read this blog post about modularizing your laravel apps.
Credits π
Anchor is built on the Laravel web application framework and nuxtJS; this project boilerplate would not be possible without contributions from
- Taylor Otwell - For laravel framework
- NuxtJS Contributors
- Spatie - For all the packages till now
- Cretu Eusebiu - For reference on nuxt js integration of nuxt js 1.4.0
- Larashout - For laravel repository pattern article
- Marco AurΓ©lio Deleu - Simple component based dev. blog post
License π
The Anchor project is open source software licensed under the MIT License.
Pull Requests and code contributors π
Always open for improvements and code contributors