Skip to content

Commit eb5a58d

Browse files
author
Jad Joubran
committed
Deploying starter project
1 parent ee94861 commit eb5a58d

File tree

102 files changed

+6168
-0
lines changed

Some content is hidden

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

102 files changed

+6168
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
insert_final_newline = false
5+
charset = utf-8
6+
7+
[*.{js,html}]
8+
indent_size = 4
9+
indent_style = tab
10+
trim_trailing_whitespace = true
11+
12+
[{package.json,bower.json,.jscs.json}]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.sh]
17+
end_of_line = lf

.env.example

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
APP_ENV=local
2+
APP_DEBUG=true
3+
APP_KEY=SomeRandomString
4+
5+
DB_HOST=localhost
6+
DB_DATABASE=homestead
7+
DB_USERNAME=homestead
8+
DB_PASSWORD=secret
9+
10+
CACHE_DRIVER=file
11+
SESSION_DRIVER=file
12+
QUEUE_DRIVER=sync
13+
14+
MAIL_DRIVER=smtp
15+
MAIL_HOST=mailtrap.io
16+
MAIL_PORT=2525
17+
MAIL_USERNAME=null
18+
MAIL_PASSWORD=null

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.less linguist-vendored

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/vendor
2+
/node_modules
3+
.env
4+
/bower_components
5+
npm-debug.log
6+
resources/.tmp

.jscs.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"requireCurlyBraces": [
3+
"if",
4+
"else",
5+
"for",
6+
"while",
7+
"do"
8+
],
9+
"requireSpaceAfterKeywords": [
10+
"if",
11+
"for",
12+
"while",
13+
"do",
14+
"switch",
15+
"return"
16+
],
17+
"disallowSpacesInFunctionExpression": {
18+
"beforeOpeningRoundBrace": true
19+
},
20+
"disallowTrailingWhitespace": true,
21+
"disallowMixedSpacesAndTabs": true,
22+
"requireMultipleVarDecl": true,
23+
"requireSpacesInsideObjectBrackets": "all",
24+
"requireSpaceBeforeBinaryOperators": [
25+
"+",
26+
"-",
27+
"/",
28+
"*",
29+
"=",
30+
"==",
31+
"===",
32+
"!=",
33+
"!=="
34+
],
35+
"disallowSpaceAfterPrefixUnaryOperators": [
36+
"++",
37+
"--",
38+
"+",
39+
"-"
40+
],
41+
"disallowSpaceBeforePostfixUnaryOperators": [
42+
"++",
43+
"--"
44+
],
45+
"disallowKeywords": [
46+
"with"
47+
],
48+
"disallowMultipleLineBreaks": true,
49+
"disallowKeywordsOnNewLine": [
50+
"else"
51+
],
52+
"disallowSpaceAfterObjectKeys": true,
53+
"excludeFiles": ["node_modules/**", "js/vendor/**"]
54+
}

.jshintrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"browser": true,
3+
"bitwise": true,
4+
"immed": true,
5+
"newcap": false,
6+
"noarg": true,
7+
"noempty": true,
8+
"nonew": true,
9+
"maxlen": 140,
10+
"boss": true,
11+
"eqnull": true,
12+
"eqeqeq": true,
13+
"expr": true,
14+
"strict": true,
15+
"loopfunc": true,
16+
"sub": true,
17+
"undef": true,
18+
"globals": {
19+
"angular": false,
20+
"describe": false,
21+
"it": false,
22+
"expect": false,
23+
"beforeEach": false,
24+
"afterEach": false,
25+
"module": false,
26+
"inject": false
27+
}
28+
}

angular/app/landing/landing.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World!

angular/app/landing/landing.js

Whitespace-only changes.

angular/app/landing/landing.less

Whitespace-only changes.

angular/app/login/login.html

Whitespace-only changes.

angular/app/login/login.js

Whitespace-only changes.

angular/app/login/login.less

Whitespace-only changes.

angular/app/main.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
(function(){
2+
"use strict";
3+
var app = angular.module('app',
4+
[
5+
'app.controllers',
6+
'app.filters',
7+
'app.services',
8+
'app.directives',
9+
'app.routes',
10+
'app.config',
11+
]);
12+
13+
angular.module('app.routes', ['ui.router']);
14+
angular.module('app.controllers', ['ui.router']);
15+
angular.module('app.filters', []);
16+
angular.module('app.services', ['ui.router']);
17+
angular.module('app.directives', []);
18+
angular.module('app.config', []);
19+
20+
})();

angular/app/routes.js

Whitespace-only changes.

angular/config/http.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(function(){
2+
"use strict";
3+
4+
angular.module('app.config').config( function($httpProvider) {
5+
// $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
6+
});
7+
8+
})();

angular/filters/capitalize.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(function(){
2+
"use strict";
3+
4+
angular.module('app.filters').filter( 'capitalize', function(){
5+
return function(input, all) {
6+
return (!!input) ? input.replace(/([^\W_]+[^\s-]*) */g,function(txt){
7+
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
8+
}) : '';
9+
};
10+
});
11+
})();

angular/filters/translations.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(function(){
2+
"use strict";
3+
4+
angular.module('app.filters').filter( 't', function( $filter ){
5+
return function( text ){
6+
text = $filter('translate')(text);
7+
return $filter('ucfirst')(text);
8+
};
9+
});
10+
})();

angular/filters/trust_html.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(function(){
2+
"use strict";
3+
4+
angular.module('app.filters').filter( 'trustHtml', function( $sce ){
5+
return function( html ){
6+
return $sce.trustAsHtml(html);
7+
};
8+
});
9+
})();

angular/filters/ucfirst.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(function(){
2+
"use strict";
3+
4+
angular.module('app.filters').filter('ucfirst', function() {
5+
return function( input ) {
6+
if ( !input ){
7+
return null;
8+
}
9+
return input.substring(0, 1).toUpperCase() + input.substring(1);
10+
};
11+
});
12+
13+
})();

app/Commands/Command.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php namespace App\Commands;
2+
3+
abstract class Command {
4+
5+
//
6+
7+
}

app/Console/Commands/Inspire.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php namespace App\Console\Commands;
2+
3+
use Illuminate\Console\Command;
4+
use Illuminate\Foundation\Inspiring;
5+
6+
class Inspire extends Command {
7+
8+
/**
9+
* The console command name.
10+
*
11+
* @var string
12+
*/
13+
protected $name = 'inspire';
14+
15+
/**
16+
* The console command description.
17+
*
18+
* @var string
19+
*/
20+
protected $description = 'Display an inspiring quote';
21+
22+
/**
23+
* Execute the console command.
24+
*
25+
* @return mixed
26+
*/
27+
public function handle()
28+
{
29+
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
30+
}
31+
32+
}

app/Console/Kernel.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php namespace App\Console;
2+
3+
use Illuminate\Console\Scheduling\Schedule;
4+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
5+
6+
class Kernel extends ConsoleKernel {
7+
8+
/**
9+
* The Artisan commands provided by your application.
10+
*
11+
* @var array
12+
*/
13+
protected $commands = [
14+
'App\Console\Commands\Inspire',
15+
];
16+
17+
/**
18+
* Define the application's command schedule.
19+
*
20+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
21+
* @return void
22+
*/
23+
protected function schedule(Schedule $schedule)
24+
{
25+
$schedule->command('inspire')
26+
->hourly();
27+
}
28+
29+
}

app/Events/Event.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php namespace App\Events;
2+
3+
abstract class Event {
4+
5+
//
6+
7+
}

app/Exceptions/Handler.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php namespace App\Exceptions;
2+
3+
use Exception;
4+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
5+
6+
class Handler extends ExceptionHandler {
7+
8+
/**
9+
* A list of the exception types that should not be reported.
10+
*
11+
* @var array
12+
*/
13+
protected $dontReport = [
14+
'Symfony\Component\HttpKernel\Exception\HttpException'
15+
];
16+
17+
/**
18+
* Report or log an exception.
19+
*
20+
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
21+
*
22+
* @param \Exception $e
23+
* @return void
24+
*/
25+
public function report(Exception $e)
26+
{
27+
return parent::report($e);
28+
}
29+
30+
/**
31+
* Render an exception into an HTTP response.
32+
*
33+
* @param \Illuminate\Http\Request $request
34+
* @param \Exception $e
35+
* @return \Illuminate\Http\Response
36+
*/
37+
public function render($request, Exception $e)
38+
{
39+
return parent::render($request, $e);
40+
}
41+
42+
}

app/Handlers/Commands/.gitkeep

Whitespace-only changes.

app/Handlers/Events/.gitkeep

Whitespace-only changes.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php namespace App\Http\Controllers\Auth;
2+
3+
use App\Http\Controllers\Controller;
4+
use Illuminate\Contracts\Auth\Guard;
5+
use Illuminate\Contracts\Auth\Registrar;
6+
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
7+
8+
class AuthController extends Controller {
9+
10+
/*
11+
|--------------------------------------------------------------------------
12+
| Registration & Login Controller
13+
|--------------------------------------------------------------------------
14+
|
15+
| This controller handles the registration of new users, as well as the
16+
| authentication of existing users. By default, this controller uses
17+
| a simple trait to add these behaviors. Why don't you explore it?
18+
|
19+
*/
20+
21+
use AuthenticatesAndRegistersUsers;
22+
23+
/**
24+
* Create a new authentication controller instance.
25+
*
26+
* @param \Illuminate\Contracts\Auth\Guard $auth
27+
* @param \Illuminate\Contracts\Auth\Registrar $registrar
28+
* @return void
29+
*/
30+
public function __construct(Guard $auth, Registrar $registrar)
31+
{
32+
$this->auth = $auth;
33+
$this->registrar = $registrar;
34+
35+
$this->middleware('guest', ['except' => 'getLogout']);
36+
}
37+
38+
}

0 commit comments

Comments
 (0)