An open API service indexing awesome lists of open source software.

https://github.com/coders-tm/qaravel

Qaravel is a Combination of Laravel and Quasar
https://github.com/coders-tm/qaravel

laravel laravel-boilerplate laravel-framework quasar quasar-framework quasarframework recurring-billing spa stripe subscription-boilerplate user-management user-management-system vite vue vuejs

Last synced: about 1 month ago
JSON representation

Qaravel is a Combination of Laravel and Quasar

Awesome Lists containing this project

README

          

# [Qaravel (qaravel)](https://qaravel.coderstm.com/)

[Qaravel](https://qaravel.coderstm.com/) is a Combination of Laravel and Quasar.





## 1. Add FontAwesome pro key

We used Fontawesome pro version.

## 2. Install the dependencies

```bash
yarn
```

## 3. Add Configuration

```bash
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](https://laravel.com/docs/9.x/sanctum#api-token-authentication)

## 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
```

```bash
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
```

```bash
yarn start:web
```

### Build the app for production

```bash
yarn build:web
```

### Lint the files

```bash
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](https://laravel.com/docs/9.x/valet)

### How to deply it in web?

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

```bash
cp .htaccess.example .htaccess
```

### Customize the configuration

See [Configuring quasar.conf.js](https://quasar.dev/quasar-cli/quasar-conf-js).

### Support me

If you find my work helpful, or you want to support the development, star the repo or buy me a coffee:

[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/dipaksarkar)