Skip to content

coders-tm/qaravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qaravel is a Combination of Laravel and Quasar.

1. Add FontAwesome pro key

We used Fontawesome pro version.

2. Install the dependencies

yarn

3. Add Configuration

cp .env.example .env
cp .env.frontend .env.frontend.dev

4. Configuration for Laravel Sanctum

We have used Laravel Sanctum SPA authentication. Laravel Sanctum provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities / scopes which specify which actions the tokens are allowed to perform. Please check laravel default sanctum configuration

5. Migrate the Database

Add your database details on .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=qaravel
DB_USERNAME=root
DB_PASSWORD=toor
yarn fresh:dev

Steps for Windows User

Press Win key + R > Paste following in the box > Press Enter

c:\windows\system32\drivers\etc\hosts

Then add thoes line at the bottom and save as admin.

127.0.0.1   api.qaravel.gomedia
127.0.0.1   app.qaravel.gomedia

7. Start the app in development mode (hot-code reloading, error reporting, etc.)

Only for windows user

php artisan serve --host=api.qaravel.gomedia  --port=80

Change your api url from .env.frontend.dev

API_URL=http://api.qaravel.gomedia
yarn start:web

Build the app for production

yarn build:web

Lint the files

yarn run lint

How to deply it in local?

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too. We used valet to deploy this project. Check the configuration of Laravel Valet

How to deply it in web?

First build your app then move all files in server and run following command

cp .htaccess.example .htaccess

Customize the configuration

See Configuring quasar.conf.js.