Skip to content

Commit 922279d

Browse files
committed
Laravel implementation of Demo Zero
1 parent cf96d16 commit 922279d

File tree

262 files changed

+313177
-7586
lines changed

Some content is hidden

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

262 files changed

+313177
-7586
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

.env

-2
This file was deleted.

.env.example

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
LOG_CHANNEL=stack
8+
9+
DB_CONNECTION=mysql
10+
DB_HOST=127.0.0.1
11+
DB_PORT=3306
12+
DB_DATABASE=laravel
13+
DB_USERNAME=root
14+
DB_PASSWORD=
15+
16+
BROADCAST_DRIVER=log
17+
CACHE_DRIVER=file
18+
QUEUE_CONNECTION=sync
19+
SESSION_DRIVER=file
20+
SESSION_LIFETIME=120
21+
22+
REDIS_HOST=127.0.0.1
23+
REDIS_PASSWORD=null
24+
REDIS_PORT=6379
25+
26+
MAIL_DRIVER=smtp
27+
MAIL_HOST=smtp.mailtrap.io
28+
MAIL_PORT=2525
29+
MAIL_USERNAME=null
30+
MAIL_PASSWORD=null
31+
MAIL_ENCRYPTION=null
32+
33+
AWS_ACCESS_KEY_ID=
34+
AWS_SECRET_ACCESS_KEY=
35+
AWS_DEFAULT_REGION=us-east-1
36+
AWS_BUCKET=
37+
38+
PUSHER_APP_ID=
39+
PUSHER_APP_KEY=
40+
PUSHER_APP_SECRET=
41+
PUSHER_APP_CLUSTER=mt1
42+
43+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
44+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

.env.prod

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

.gitignore

+14-21
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/vendor
16
.DS_Store
2-
node_modules
3-
package-lock.json
4-
/dist
5-
6-
# local env files
7-
.env.local
8-
.env.*.local
9-
10-
# Log files
11-
npm-debug.log*
12-
yarn-debug.log*
13-
yarn-error.log*
14-
15-
# Editor directories and files
16-
.idea
17-
.vscode
18-
*.suo
19-
*.ntvs*
20-
*.njsproj
21-
*.sln
22-
*.sw*
7+
.env
8+
.env.backup
9+
.phpunit.result.cache
10+
Homestead.json
11+
Homestead.yaml
12+
npm-debug.log
13+
yarn-error.log
14+
capistrano.log
15+
/log

.styleci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
php:
2+
preset: laravel
3+
enabled:
4+
- alpha_ordered_imports
5+
disabled:
6+
- length_ordered_imports
7+
- unused_use
8+
finder:
9+
not-name:
10+
- index.php
11+
- server.php
12+
js:
13+
finder:
14+
not-name:
15+
- webpack.mix.js
16+
css: true

Capfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Load DSL and set up stages
2+
require "capistrano/setup"
3+
4+
# Include default deployment tasks
5+
require "capistrano/deploy"
6+
7+
8+
# Load the SCM plugin appropriate to your project:
9+
#
10+
# require "capistrano/scm/hg"
11+
# install_plugin Capistrano::SCM::Hg
12+
# or
13+
# require "capistrano/scm/svn"
14+
# install_plugin Capistrano::SCM::Svn
15+
# or
16+
require "capistrano/scm/git"
17+
install_plugin Capistrano::SCM::Git
18+
19+
# Include tasks from other gems included in your Gemfile
20+
#
21+
# For documentation on these, see for example:
22+
#
23+
# https://github.com/capistrano/rvm
24+
# https://github.com/capistrano/rbenv
25+
# https://github.com/capistrano/chruby
26+
# https://github.com/capistrano/bundler
27+
# https://github.com/capistrano/rails
28+
# https://github.com/capistrano/passenger
29+
#
30+
# require "capistrano/rvm"
31+
# require "capistrano/rbenv"
32+
# require "capistrano/chruby"
33+
# require "capistrano/bundler"
34+
# require "capistrano/rails/assets"
35+
# require "capistrano/rails/migrations"
36+
# require "capistrano/passenger"
37+
require 'capistrano/laravel'
38+
require 'capistrano/npm'
39+
40+
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
41+
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
42+
require 'dotenv/load'

Gemfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
source "https://rubygems.org"
3+
4+
gem "capistrano", "~> 3.0"
5+
gem "capistrano-laravel"
6+
gem "capistrano-npm"
7+
gem "pry"
8+
gem 'serverspec'
9+
gem 'highline'
10+
gem "dotenv"

Gemfile.lock

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
airbrussh (1.4.0)
5+
sshkit (>= 1.6.1, != 1.7.0)
6+
capistrano (3.11.2)
7+
airbrussh (>= 1.0.0)
8+
i18n
9+
rake (>= 10.0.0)
10+
sshkit (>= 1.9.0)
11+
capistrano-composer (0.0.6)
12+
capistrano (>= 3.0.0.pre)
13+
capistrano-file-permissions (1.0.0)
14+
capistrano (~> 3.0)
15+
capistrano-laravel (1.2.2)
16+
capistrano (>= 3.0.0)
17+
capistrano-composer (>= 0.0.6)
18+
capistrano-file-permissions (>= 1.0.0)
19+
capistrano-npm (1.0.3)
20+
capistrano (>= 3.0.0)
21+
coderay (1.1.2)
22+
concurrent-ruby (1.1.5)
23+
diff-lcs (1.3)
24+
dotenv (2.7.5)
25+
highline (2.0.3)
26+
i18n (1.7.0)
27+
concurrent-ruby (~> 1.0)
28+
method_source (0.9.2)
29+
multi_json (1.14.1)
30+
net-scp (2.0.0)
31+
net-ssh (>= 2.6.5, < 6.0.0)
32+
net-ssh (5.2.0)
33+
net-telnet (0.1.1)
34+
pry (0.12.2)
35+
coderay (~> 1.1.0)
36+
method_source (~> 0.9.0)
37+
rake (13.0.0)
38+
rspec (3.9.0)
39+
rspec-core (~> 3.9.0)
40+
rspec-expectations (~> 3.9.0)
41+
rspec-mocks (~> 3.9.0)
42+
rspec-core (3.9.0)
43+
rspec-support (~> 3.9.0)
44+
rspec-expectations (3.9.0)
45+
diff-lcs (>= 1.2.0, < 2.0)
46+
rspec-support (~> 3.9.0)
47+
rspec-its (1.3.0)
48+
rspec-core (>= 3.0.0)
49+
rspec-expectations (>= 3.0.0)
50+
rspec-mocks (3.9.0)
51+
diff-lcs (>= 1.2.0, < 2.0)
52+
rspec-support (~> 3.9.0)
53+
rspec-support (3.9.0)
54+
serverspec (2.41.5)
55+
multi_json
56+
rspec (~> 3.0)
57+
rspec-its
58+
specinfra (~> 2.72)
59+
sfl (2.3)
60+
specinfra (2.82.3)
61+
net-scp
62+
net-ssh (>= 2.7)
63+
net-telnet (= 0.1.1)
64+
sfl
65+
sshkit (1.20.0)
66+
net-scp (>= 1.1.2)
67+
net-ssh (>= 2.8.0)
68+
69+
PLATFORMS
70+
ruby
71+
72+
DEPENDENCIES
73+
capistrano (~> 3.0)
74+
capistrano-laravel
75+
capistrano-npm
76+
dotenv
77+
highline
78+
pry
79+
serverspec
80+
81+
BUNDLED WITH
82+
2.0.1

README.md

-29
This file was deleted.

SmartFigure Gallery.bmpr

-7.69 MB
Binary file not shown.

app/Console/Kernel.php

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
namespace App\Console;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7+
8+
class Kernel extends ConsoleKernel
9+
{
10+
/**
11+
* The Artisan commands provided by your application.
12+
*
13+
* @var array
14+
*/
15+
protected $commands = [
16+
//
17+
];
18+
19+
/**
20+
* Define the application's command schedule.
21+
*
22+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
23+
* @return void
24+
*/
25+
protected function schedule(Schedule $schedule)
26+
{
27+
// $schedule->command('inspire')
28+
// ->hourly();
29+
}
30+
31+
/**
32+
* Register the commands for the application.
33+
*
34+
* @return void
35+
*/
36+
protected function commands()
37+
{
38+
$this->load(__DIR__.'/Commands');
39+
40+
require base_path('routes/console.php');
41+
}
42+
}

0 commit comments

Comments
 (0)