Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone git@github.com:BhavikTrambadiya/vuelaravel.git
Switch to the repo folder
cd vuelaravel
Install all the dependencies using composer
composer install
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Install all the dependencies using npm
npm install
APP_URL=http://vuelaravel.test
Generate a new application key
php artisan key:generate
Setup Passport
passport set up passport accoding to this url
php artisan passport:keys
php artisan passport:client --personal
Run the database migrations (Set the database connection in .env before migrating)
php artisan migrate
Run the database seeder and you're done
php artisan db:seed
Compile all the dependencies using npm
npm run dev
Start the local development server
php artisan serve
You can now access the server at http://localhost:8000
Use Laragon or other tools
http://vuelaravel.test
The api can be accessed at http://localhost:8000/api/v1.
- passport - For authentication using JSON Web Tokens
- laravel-ui - For Vue and Boostrap setup
app
- Contains all the Eloquent modelsapp/Enums
- Contains all the php 8.1 enumsapp/Http/Controllers/Api
- Contains all the api controllersapp/Http/Controllers/Admin
- Contains all the admin controllersapp/Http/Middleware/AceessTokenIsvalid
- Contains the token auth middlewareapp/Http/Requests/Api
- Contains all the api form requestsapp/Http/Resource
- Contains all the api form resourceapp/Http/Traits
- Contains all the traitsapp/Providers
- Contains some changes with blade derivatives and boostrap paginationapp/Services
- Contains all service accoding to project needapp/View
- Contains the laravel Componentsdatabase/migrations
- Contains all the database migrationsdatabase/seeds
- Contains the database seederresources/view
- Contains the blade viewresources/js
- Contains the Vue project and other scriptsresources/scss
- Contains the Boostrap cssroutes
- Contains all the api routes defined in api.php file