Skip to content

Commit 2beeedd

Browse files
committed
updated base config
1 parent 318586a commit 2beeedd

File tree

264 files changed

+16712
-13510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+16712
-13510
lines changed

.editorconfig

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ root = true
22

33
[*]
44
charset = utf-8
5-
indent_style = space
6-
indent_size = 2
75
end_of_line = lf
86
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
99
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.example

+27-10
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,65 @@
1-
APP_NAME=Qaravel
1+
APP_NAME=APP_NAME=Qaravel
22
APP_ENV=local
3-
APP_KEY=base64:2UkK1HvAMdBAHUfIZOQX8xTRc7v6Ik6I+FGcYKdlmpg=
3+
APP_KEY=base64:WxtI6bGfS2nBHzH5VCosFroXjrDpNnrbfEIeyMea0xI=
44
APP_DEBUG=true
55
APP_URL=http://qaravel.gomedia
6-
SANCTUM_STATEFUL_DOMAINS=qaravel.gomedia:8080
76

87
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
9+
LOG_LEVEL=debug
910

1011
DB_CONNECTION=mysql
1112
DB_HOST=127.0.0.1
1213
DB_PORT=3306
1314
DB_DATABASE=qaravel
1415
DB_USERNAME=root
15-
DB_PASSWORD=
16+
DB_PASSWORD=password
1617

1718
BROADCAST_DRIVER=log
1819
CACHE_DRIVER=file
19-
QUEUE_CONNECTION=sync
20+
FILESYSTEM_DISK=local
21+
QUEUE_CONNECTION=database
22+
QUEUE_DRIVER=database
2023
SESSION_DRIVER=file
2124
SESSION_LIFETIME=120
2225
SESSION_DOMAIN=.qaravel.gomedia
2326

27+
MEMCACHED_HOST=127.0.0.1
28+
2429
REDIS_HOST=127.0.0.1
2530
REDIS_PASSWORD=null
2631
REDIS_PORT=6379
2732

2833
MAIL_MAILER=smtp
29-
MAIL_HOST=smtp.mailtrap.io
30-
MAIL_PORT=2525
34+
MAIL_HOST=127.0.0.1
35+
MAIL_PORT=1025
3136
MAIL_USERNAME=null
3237
MAIL_PASSWORD=null
3338
MAIL_ENCRYPTION=null
34-
MAIL_FROM_ADDRESS=null
39+
MAIL_FROM_ADDRESS="[email protected]"
3540
MAIL_FROM_NAME="${APP_NAME}"
3641

3742
AWS_ACCESS_KEY_ID=
3843
AWS_SECRET_ACCESS_KEY=
3944
AWS_DEFAULT_REGION=us-east-1
4045
AWS_BUCKET=
46+
AWS_USE_PATH_STYLE_ENDPOINT=false
4147

4248
PUSHER_APP_ID=
4349
PUSHER_APP_KEY=
4450
PUSHER_APP_SECRET=
51+
PUSHER_HOST=
52+
PUSHER_PORT=443
53+
PUSHER_SCHEME=https
4554
PUSHER_APP_CLUSTER=mt1
4655

47-
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
48-
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
56+
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
57+
VITE_PUSHER_HOST="${PUSHER_HOST}"
58+
VITE_PUSHER_PORT="${PUSHER_PORT}"
59+
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
60+
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
61+
62+
# Custom config
63+
APP_DOMAIN=qaravel.gomedia
64+
# TUNNEL_WEB_DOMAIN=9a7e-110-172-131-234.ngrok.io
65+
SANCTUM_STATEFUL_DOMAINS=*.qaravel.gomedia:9000,qaravel.gomedia:9000,*.qaravel.gomedia,qaravel.gomedia

.env.frontend

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# The data added here will be propagated to the client
33
# example:
44
# PORT=8080
5+
APP_ENV=Development
6+
APP_DEBUG=true
57
APP_NAME=Qaravel
68
API_URL=http://qaravel.gomedia/api/
79
COOKIE_URL=#

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
/dist
2+
/src-capacitor
3+
/src-cordova
4+
/.quasar
5+
/node_modules
6+
.eslintrc.js

.eslintrc.js

+38-34
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,64 @@
11
module.exports = {
2+
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
3+
// This option interrupts the configuration hierarchy at this file
4+
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
25
root: true,
36

47
parserOptions: {
5-
parser: 'babel-eslint',
6-
sourceType: 'module'
8+
ecmaVersion: "2021" // Allows for the parsing of modern ECMAScript features
79
},
810

911
env: {
10-
browser: true
12+
node: true,
13+
browser: true,
14+
"vue/setup-compiler-macros": true
1115
},
1216

17+
// Rules order is important, please avoid shuffling them
1318
extends: [
14-
'standard',
19+
// Base ESLint recommended rules
20+
// 'eslint:recommended',
21+
1522
// Uncomment any of the lines below to choose desired strictness,
1623
// but leave only one uncommented!
1724
// See https://eslint.vuejs.org/rules/#available-rules
18-
'plugin:vue/essential' // Priority A: Essential (Error Prevention)
19-
// 'plugin:vue/strongly-recommended' // Priority B: Strongly Recommended (Improving Readability)
20-
// 'plugin:vue/recommended' // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
25+
"plugin:vue/vue3-essential", // Priority A: Essential (Error Prevention)
26+
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
27+
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
28+
29+
// https://github.com/prettier/eslint-config-prettier#installation
30+
// usage with Prettier, provided by 'eslint-config-prettier'.
31+
"prettier"
2132
],
2233

23-
// required to lint *.vue files
2434
plugins: [
25-
'vue'
35+
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
36+
// required to lint *.vue files
37+
"vue"
38+
39+
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
40+
// Prettier has not been included as plugin to avoid performance impact
41+
// add it as an extension for your IDE
2642
],
2743

2844
globals: {
29-
'ga': true, // Google Analytics
30-
'cordova': true,
31-
'__statics': true,
32-
'process': true,
33-
'Capacitor': true,
34-
'chrome': true
45+
ga: "readonly", // Google Analytics
46+
cordova: "readonly",
47+
__statics: "readonly",
48+
__QUASAR_SSR__: "readonly",
49+
__QUASAR_SSR_SERVER__: "readonly",
50+
__QUASAR_SSR_CLIENT__: "readonly",
51+
__QUASAR_SSR_PWA__: "readonly",
52+
process: "readonly",
53+
Capacitor: "readonly",
54+
chrome: "readonly"
3555
},
3656

3757
// add your custom rules here
3858
rules: {
39-
// allow async-await
40-
'generator-star-spacing': 'off',
41-
// allow paren-less arrow functions
42-
'arrow-parens': 'off',
43-
'one-var': 'off',
44-
45-
'space-before-function-paren': ["error", "always"],
46-
47-
'import/first': 'off',
48-
'import/named': 'error',
49-
'import/namespace': 'error',
50-
'import/default': 'error',
51-
'import/export': 'error',
52-
'import/extensions': 'off',
53-
'import/no-unresolved': 'off',
54-
'import/no-extraneous-dependencies': 'off',
55-
'prefer-promise-reject-errors': 'off',
59+
"prefer-promise-reject-errors": "off",
5660

5761
// allow debugger during development only
58-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
62+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
5963
}
60-
}
64+
};

README.md

+90-2
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,113 @@
22

33
Qaravel is a Combination of Laravel and Quasar
44

5-
## Install the dependencies
5+
## 1. Add FontAwesome pro key
6+
7+
We used Fontawesome pro version.
8+
9+
## 2. Install the dependencies
10+
611
```bash
712
yarn
813
```
914

10-
### Start the app in development mode (hot-code reloading, error reporting, etc.)
15+
## 3. Add Configuration
16+
17+
```bash
18+
cp .env.example .env
19+
cp .env.frontend .env.frontend.dev
20+
```
21+
22+
## 4. Configuration for Laravel Sanctum
23+
24+
We have used Laravel Sanctum SPA authentication. Laravel Sanctum provides a featherweight
25+
authentication system for SPAs (single page applications), mobile applications, and simple, token
26+
based APIs. Sanctum allows each user of your application to generate multiple API tokens for their
27+
account. These tokens may be granted abilities / scopes which specify which actions the tokens are
28+
allowed to perform. Please check laravel default
29+
[sanctum configuration](https://laravel.com/docs/9.x/sanctum#spa-authentication)
30+
31+
```bash
32+
SANCTUM_STATEFUL_DOMAINS=qaravel.gomedia:9000 (for local you have to include your port)
33+
SESSION_DOMAIN=.qaravel.gomedia
34+
```
35+
36+
## 5. Migrate the Database
37+
38+
Add your database details on .env
39+
40+
```
41+
DB_CONNECTION=mysql
42+
DB_HOST=127.0.0.1
43+
DB_PORT=3306
44+
DB_DATABASE=qaravel
45+
DB_USERNAME=root
46+
DB_PASSWORD=toor
47+
```
48+
49+
```bash
50+
yarn fresh:dev
51+
```
52+
53+
### Steps for Windows User
54+
55+
Press Win key + R > Paste following in the box > Press Enter
56+
57+
```
58+
c:\windows\system32\drivers\etc\hosts
59+
```
60+
61+
Then add thoes line at the bottom and save as admin.
62+
63+
```
64+
127.0.0.1 api.qaravel.gomedia
65+
127.0.0.1 app.qaravel.gomedia
66+
```
67+
68+
### 7. Start the app in development mode (hot-code reloading, error reporting, etc.)
69+
70+
> Only for windows user
71+
72+
```
73+
php artisan serve --host=api.qaravel.gomedia --port=80
74+
```
75+
76+
Change your api url from .env.frontend.dev
77+
78+
```
79+
API_URL=http://api.qaravel.gomedia
80+
```
81+
1182
```bash
1283
yarn start:web
1384
```
1485

1586
### Build the app for production
87+
1688
```bash
1789
yarn build:web
1890
```
1991

2092
### Lint the files
93+
2194
```bash
2295
yarn run lint
2396
```
2497

98+
### How to deply it in local?
99+
100+
Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You
101+
can even share your sites publicly using local tunnels. Yeah, we like it too. We used valet to
102+
deploy this project. Check the configuration of [Laravel Valet](https://laravel.com/docs/9.x/valet)
103+
104+
### How to deply it in web?
105+
106+
First build your app then move all files in server and run following command
107+
108+
```bash
109+
cp .htaccess.example .htaccess
110+
```
111+
25112
### Customize the configuration
113+
26114
See [Configuring quasar.conf.js](https://quasar.dev/quasar-cli/quasar-conf-js).

0 commit comments

Comments
 (0)