This project is a starting point for creating a Vue.js SPA that consumes authenticated API requests built on Laravel 6.0.
The Vue SPA + Laravel API Boilerplate is a project that provides a solid starting point for developers looking to create a Vue.js single-page application (SPA) that consumes authenticated API requests. The boilerplate is built on Laravel 6.0 and utilizes Passport for API authentication. It is important to note that the accompanying articles providing step-by-step instructions for creating this repository are written in Spanish.
To install the Vue SPA + Laravel API Boilerplate, follow these steps:
git clone [repository_url]
cd [project_directory]
npm install # Install dependencies for Vue SPA
composer install # Install dependencies for Laravel API
cp .env.example .env
Make necessary changes to the .env file to match your database settings.
php artisan key:generate
php artisan migrate
php artisan passport:install
npm run dev # Development mode
npm run prod # Production mode (minified)
php artisan serve
The application should now be accessible at http://localhost:8000.
The Vue SPA + Laravel API Boilerplate is a helpful starting point for developers who want to create a Vue.js SPA that consumes authenticated API requests. With its integration of Laravel 6.0 and Laravel Passport, it provides a robust foundation for building secure and efficient applications. The step-by-step guides provided in the accompanying Spanish articles make it easier for developers to set up the repository and get started with their projects.