Skip to content

Commit bf2a242

Browse files
committed
WIP Laravel
1 parent 6327a24 commit bf2a242

File tree

1,671 files changed

+354386
-56368
lines changed

Some content is hidden

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

1,671 files changed

+354386
-56368
lines changed

.dockerignore

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Laravel template
3+
vendor/*
4+
node_modules/*
5+
npm-debug.log
6+
7+
/storage/api-docs
8+
/storage/app
9+
/storage/framework/views
10+
/storage/framework/cache
11+
/storage/framework/sessions
12+
/storage/framework/testing
13+
/storage/framework/logs
14+
/storage/logs
15+
16+
# Laravel 4 specific
17+
bootstrap/compiled.php
18+
app/storage/
19+
20+
# Laravel 5 & Lumen specific
21+
public/storage
22+
public/hot
23+
.env.*.php
24+
.env.php
25+
.env
26+
Homestead.yaml
27+
Homestead.json
28+
29+
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
30+
.rocketeer/
31+
### Windows template
32+
# Windows thumbnail cache files
33+
Thumbs.db
34+
ehthumbs.db
35+
ehthumbs_vista.db
36+
37+
# Dump file
38+
*.stackdump
39+
40+
# Folder config file
41+
[Dd]esktop.ini
42+
43+
# Recycle Bin used on file shares
44+
$RECYCLE.BIN/
45+
46+
# Windows Installer files
47+
*.cab
48+
*.msi
49+
*.msix
50+
*.msm
51+
*.msp
52+
53+
# Windows shortcuts
54+
*.lnk
55+
### macOS template
56+
# General
57+
.DS_Store
58+
.AppleDouble
59+
.LSOverride
60+
61+
# Icon must end with two \r
62+
Icon
63+
64+
# Thumbnails
65+
._*
66+
67+
# Files that might appear in the root of a volume
68+
.DocumentRevisions-V100
69+
.fseventsd
70+
.Spotlight-V100
71+
.TemporaryItems
72+
.Trashes
73+
.VolumeIcon.icns
74+
.com.apple.timemachine.donotpresent
75+
76+
# Directories potentially created on remote AFP share
77+
.AppleDB
78+
.AppleDesktop
79+
Network Trash Folder
80+
Temporary Items
81+
.apdisk
82+
83+
#storage/*.key
84+
85+
/cronFile
86+
87+
/storage/GeoLite2-City.mmdb
88+
89+
.idea
90+
.git
91+
92+
#/storage/*.key
93+
!.gitignore
94+
!.gitkeep
95+
!.gitmodules
96+
97+
!/storage/framework/views/.gitignore
98+
!/storage/logs/.gitignore
99+
!/storage/framework/testing/disks/local/.gitkeep
100+
!/storage/framework/views/.gitkeep
101+
!/storage/logs/.gitkeep
102+
!/storage/app/dashboard/tmp/.gitkeep
103+
!/storage/app/public/.gitkeep
104+
!/storage/api-docs/.gitkeep

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
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

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
APP_NAME=Wave
2+
APP_ENV=local
3+
APP_KEY=base64:8dQ7xw/kM9EYMV4cUkzKgET8jF4P0M0TOmmqN05RN2w=
4+
APP_DEBUG=false
5+
APP_LOG_LEVEL=debug
6+
APP_URL=http://wave.test
7+
8+
DB_CONNECTION=mysql
9+
DB_HOST=127.0.0.1
10+
DB_PORT=3306
11+
DB_DATABASE=wave
12+
DB_USERNAME=root
13+
DB_PASSWORD=
14+
15+
BROADCAST_DRIVER=log
16+
CACHE_DRIVER=file
17+
SESSION_DRIVER=file
18+
SESSION_LIFETIME=9999
19+
QUEUE_DRIVER=sync
20+
21+
REDIS_HOST=127.0.0.1
22+
REDIS_PASSWORD=null
23+
REDIS_PORT=6379
24+
25+
MAIL_DRIVER=smtp
26+
MAIL_HOST=smtp.mailtrap.io
27+
MAIL_PORT=2525
28+
MAIL_USERNAME=
29+
MAIL_PASSWORD=
30+
MAIL_ENCRYPTION=null
31+
32+
PUSHER_APP_ID=
33+
PUSHER_APP_KEY=
34+
PUSHER_APP_SECRET=
35+
36+
JWT_SECRET=Jrsweag3Mf0srOqDizRkhjWm5CEFcrBy
37+
38+
PADDLE_VENDOR_ID=
39+
PADDLE_VENDOR_AUTH_CODE=
40+
PADDLE_ENV=sandbox
41+
42+
WAVE_DOCS=true
43+
WAVE_DEMO=false
44+
WAVE_BAR=true

.env.local.example

-1
This file was deleted.

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.github/ISSUE_TEMPLATE/bug_report.md

-32
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

-20
This file was deleted.
File renamed without changes.

.github/img/demo.png

-244 KB
Binary file not shown.

.github/workflows/ci.yml

-31
This file was deleted.

.github/workflows/ci_pr.yml

-33
This file was deleted.

.github/workflows/tests.yaml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Laravel Tests
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
laravel-tests:
9+
runs-on: ubuntu-latest
10+
# Service container Mysql mysql
11+
services:
12+
# Label used to access the service container
13+
mysql:
14+
# Docker Hub image (also with version)
15+
image: mysql:5.7
16+
env:
17+
MYSQL_ROOT_PASSWORD: secret
18+
MYSQL_DATABASE: wave_testing
19+
## map the "external" 33306 port with the "internal" 3306
20+
ports:
21+
- 33306:3306
22+
# Set health checks to wait until mysql database has started (it takes some seconds to start)
23+
options: >-
24+
--health-cmd="mysqladmin ping"
25+
--health-interval=10s
26+
--health-timeout=5s
27+
--health-retries=3
28+
29+
strategy:
30+
matrix:
31+
operating-system: [ubuntu-latest]
32+
php-versions: [ '7.4' ]
33+
dependency-stability: [ prefer-stable ]
34+
35+
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Install PHP versions
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: ${{ matrix.php-versions }}
43+
- name: Get Composer Cache Directory 2
44+
id: composer-cache
45+
run: |
46+
echo "::set-output name=dir::$(composer config cache-files-dir)"
47+
- uses: actions/cache@v2
48+
id: actions-cache
49+
with:
50+
path: ${{ steps.composer-cache.outputs.dir }}
51+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
52+
restore-keys: |
53+
${{ runner.os }}-composer-
54+
- name: Cache PHP dependencies
55+
uses: actions/cache@v2
56+
id: vendor-cache
57+
with:
58+
path: vendor
59+
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
60+
- name: Copy .env
61+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
62+
- name: Install Dependencies
63+
if: steps.vendor-cache.outputs.cache-hit != 'true'
64+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
65+
66+
- name: Create storage folders
67+
run: mkdir -p storage/framework/{sessions,views,cache}
68+
- name: Directory Permissions
69+
run: chmod -R 777 storage bootstrap/cache
70+
71+
- name: Show dir
72+
run: pwd
73+
- name: PHP Version
74+
run: php --version
75+
76+
# Code quality
77+
- name: Execute tests (Unit and Feature tests) via PestPHP
78+
# Set environment
79+
env:
80+
DB_CONNECTION: mysql
81+
DB_DATABASE: wave_testing
82+
DB_PORT: 33306
83+
DB_USER: root
84+
DB_PASSWORD: secret
85+
run: |
86+
php artisan key:generate
87+
vendor/bin/pest

0 commit comments

Comments
 (0)