Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Node.js & Ruby & Terminal https://nodejs.org/ http://rubyinstaller.org/ Terminal your BFF

Slide 3

Slide 3 text

IDE WebStorm for Front-End Development PHPStorm = Webstorm + PHP https://jetbrains.com/

Slide 4

Slide 4 text

WebStorm - PHPStorm Features ● Best Code Intellisense ● Built-in Terminal ● REST Service Tool ● GIT Support ● Emmet (Zen Coding) Support ● PRE-Compilers Support (SASS, Coffee) ● Modern Tools Support - Gulp, Bower, etc… ● ...

Slide 5

Slide 5 text

WebStorm - PHPStorm Features List of Full Features https://jetbrains.com/webstorm/features/ https://jetbrains.com/phpstorm/features/ Course: Be Awesome in PHPStorm

Slide 6

Slide 6 text

Editor Sublime Text 2/3 - https://sublimetext.com Brackets - http://brackets.io/ Atom - https://atom.io/

Slide 7

Slide 7 text

Local Server [WIN] WampServer - http://wampserver.com/ [MAC] MAMP PRO - https://mamp.info/en/

Slide 8

Slide 8 text

WampServer PHP Extensions / Apache Modules - Enable / Disable

Slide 9

Slide 9 text

WampServer h Alias Name: my-custom-app Address: http://localhost/my-custom-app Alias Name: my-custom-app-2 Address: http://localhost/my-custom-app-2 Alias Name: my-custom-app-3 Address: http://localhost/my-custom-app-3

Slide 10

Slide 10 text

WampServer Online / Offline Mode http://YOUR_INTERNAL_IP/

Slide 11

Slide 11 text

WampServer PHP Built-in Server command: php -S localhost:PORT

Slide 12

Slide 12 text

GIT https://bitbucket.org/ http://sourcetreeapp.com/

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

GIT - SourceTree App http://sourcetreeapp.com/

Slide 15

Slide 15 text

GIT - SourceTree App Registration FREE: http://sourcetreeapp. com/register/

Slide 16

Slide 16 text

GIT - Bitbucket - Smart Commits JRA-34 #time 1w 2d 4h 30m JRA-34 #comment corrected indent issue JRA-090 #resolve Fixed this today …. https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits https://confluence.atlassian. com/display/Cloud/Processing+JIRA+issues+with+commit+messages

Slide 17

Slide 17 text

GIT Ignore .gitignore: .idea /node_modules /vendor .sass-cache

Slide 18

Slide 18 text

Forget to add to .gitignore? git rm --cached . git add . git commit

Slide 19

Slide 19 text

Emmet (Zen Coding) http://emmet.io/ Cheat Sheet

Slide 20

Slide 20 text

SASS + Compass SASS = CSS PREProcessor Compass = SASS Framework http://sass-lang.com/ http://compass-style.org/

Slide 21

Slide 21 text

SASS + Compass

Slide 22

Slide 22 text

SASS (Requires Ruby) Install Ruby - http://rubyinstaller.org/ Install SASS - gem install sass Install Compass - gem install compass

Slide 23

Slide 23 text

SASS/Compass Features ● Variables ● Nesting ● Partials ● Mixins (Functions) ● Compass Helpers ● ...

Slide 24

Slide 24 text

SASS Formats / Syntax File Extensions: *.scss and *.sass scss = css + advanced css sass = clean, simple, bracketless (no {})

Slide 25

Slide 25 text

SASS Variables app.scss app.css

Slide 26

Slide 26 text

SASS Nesting

Slide 27

Slide 27 text

SASS Mixins

Slide 28

Slide 28 text

SASS Partials

Slide 29

Slide 29 text

Compass Sprites http://compass-style.org/help/tutorials/spriting/

Slide 30

Slide 30 text

Compass Demos Demo: Background Gradients Demo: CSS3 Transition Demo: Font Face Example Demo: Box-shadow ...

Slide 31

Slide 31 text

Configuration (config.rb) https://gist.github.com/nathansmith/1179395

Slide 32

Slide 32 text

Watch and Compile command: compass compile # or command: compass watch # start a new project command: compass init # clean compiled files command: compass clean

Slide 33

Slide 33 text

Resources - SASS / Compass http://sass-lang.com/ http://compass-style.org/ http://www.hongkiat.com/blog/getting-started-saas/ http://thesassway.com/intermediate/spriting-with-sass-and-compass http://teamtreehouse.com/library/compass-basics Course: http://leveluptuts.com/tutorials/sass-tutorials Course: http://leveluptuts.com/tutorials/compass-tutorials

Slide 34

Slide 34 text

CoffeeScript & TypeScript http://coffeescript.org/ npm install -g coffee-script http://typescriptlang.org/ npm install -g typescript Next Version of JS

Slide 35

Slide 35 text

CoffeeScript Classes & Inheritance

Slide 36

Slide 36 text

TypeScript Classes

Slide 37

Slide 37 text

TypeScript Inheritance

Slide 38

Slide 38 text

HTML PREProcessors http://haml.info/ http://jade-lang.com/

Slide 39

Slide 39 text

HAML

Slide 40

Slide 40 text

Jade

Slide 41

Slide 41 text

Source Maps & Workspace

Slide 42

Slide 42 text

Source Maps & Workspace ● https://developer.chrome.com/devtools/docs/workspaces ● http://www.sitepoint.com/using-source-maps-debug-sass-chrome/ ● http://code.tutsplus.com/tutorials/working-with-less-and-the-chrome- devtools--net-36636

Slide 43

Slide 43 text

JSBin http://jsbin.com/

Slide 44

Slide 44 text

NPM & package.json https://www.npmjs.com/

Slide 45

Slide 45 text

NPM Modules /node_modules add that folder .gitignore .idea /node_modules ...

Slide 46

Slide 46 text

Gulp.JS - Javascript Task Runner http://gulpjs.com/ npm install -g gulp

Slide 47

Slide 47 text

Gulp Features ● Set-up a Node.js Server ● Concatenate Files ● Minify Files ● Precompile Assets (CSS, JS, HTML) ● Extendable (by Plugins) ● ...

Slide 48

Slide 48 text

Essential Gulp Plugins gulp-sass - Compile SASS to CSS gulp-compass - Compile Compass to CSS gulp-uglify - Minify JS Files gulp-concat - Concatenate (Merge) Multiple files into one gulp-browser-sync - Synchronize browser with project ( http://browsersync.io/ ) … laravel/elixir - Laravel specific, but All-in-one gulp plugin. ... http://gulpjs.com/plugins/

Slide 49

Slide 49 text

gulpfile.js var gulp = require('gulp'); var concat = require('gulp-concat'); gulp.task('scripts', function() { return gulp.src('src/*.js') .pipe(concat('app.js')) .pipe(gulp.dest('dist/js')); }); gulp.task('watch', function() { gulp.watch('src/*.js', ['scripts']); });

Slide 50

Slide 50 text

Gulp Resources ● Getting Started With Gulp.js ● Course: Learning Gulp ● http://gulpjs.com/ ● https://github.com/laravel/elixir ● http://laravel.com/docs/5.0/elixir ● https://laracasts.com/index/elixir

Slide 51

Slide 51 text

Bower & Package Management http://bower.io/ npm install -g bower

Slide 52

Slide 52 text

Bower - List of Packages http://bower.io/search/ command: bower search [package] bower search jquery

Slide 53

Slide 53 text

Bower - Install/Update Packages install command: bower install jquery install and save: bower install jquery --save update command: bower update jquery uninstall command: bower uninstall jquery

Slide 54

Slide 54 text

Bower.json command: bower init bower.json

Slide 55

Slide 55 text

Bower Configuration - .bowerrc /bower_components ( default ) .bowerrc { “directory” : “packages” } http://bower.io/docs/config/

Slide 56

Slide 56 text

Javascript Frameworks http://emberjs.com/ http://backbonejs.org/ https://angularjs.org/ http://knockoutjs.com/ https://facebook.github.io/react/

Slide 57

Slide 57 text

AngularJS ● 2-way data binding ● Filters ● Directives - Custom HTML snippets ● 3rd-party libraries ● … Showcases: https://builtwith.angularjs.org/ Best Practices: https://github.com/mgechev/angularjs-style-guide https://github.com/johnpapa/angular-styleguide

Slide 58

Slide 58 text

AngularJS Resources ● https://egghead.io/ ● http://ngmodules.org/ ● angular free course ● https://thinkster.io/a-better-way-to-learn-angularjs/

Slide 59

Slide 59 text

AngularJS Directory Structure

Slide 60

Slide 60 text

Javascript Helpers http://underscorejs.org/

Slide 61

Slide 61 text

Underscore.js

Slide 62

Slide 62 text

lodash.js https://lodash.com/

Slide 63

Slide 63 text

Kendo UI http://www.telerik.com/kendo-ui

Slide 64

Slide 64 text

Kendo UI - Components ● Grid ● Chars ● Editor ● Upload ● Window ● Tree View ● Auto Compete ● Date Picker ● Multi Select ● Buttons ● Tabs ● Sorting ● Filtering ● …. http://demos.telerik.com/kendo-ui/

Slide 65

Slide 65 text

Kendo UI - Grid

Slide 66

Slide 66 text

Kendo UI Grid

Slide 67

Slide 67 text

+ =

Slide 68

Slide 68 text

Kendo Grid - AngularJS

Slide 69

Slide 69 text

Kendo Grid AngularJS

Slide 70

Slide 70 text

Kendo UI - Resources http://www.pluralsight.com/courses/introduction-to-kendoui http://www.pluralsight.com/courses/kendo-ui-angularjs-from-scratch

Slide 71

Slide 71 text

HTML5 Mobile Applications https://mbookmakers.adjarabet.com/ Built with: jQuery Mobile Access: Safari/Browser App Store / Google Play - NO

Slide 72

Slide 72 text

HTML5 Mobile Applications NO jQuery Use Vanilla JS, AngularJS ... NO GIF Animations Use CSS Animations, GSAP Modular Approach Single Page Application

Slide 73

Slide 73 text

HTML5 Mobile Applications Mobile App Icon Generator Sencha Touch

Slide 74

Slide 74 text

Composer - PHP Package Management https://getcomposer.org/ Windows Installer https://packagist.org/

Slide 75

Slide 75 text

Composer - composer.json

Slide 76

Slide 76 text

Composer - Commands composer create-project laravel/laravel . composer require author/package-name composer require-dev author/package-name composer install composer update composer dump-autoload -o vendor/autoload.php

Slide 77

Slide 77 text

Laravel - PHP Framework http://laravel.com/

Slide 78

Slide 78 text

Laravel - Installation composer create-project laravel/laravel Laravel installer: laravel new app_name Artisan: php artisan serve # http://localhost:8000

Slide 79

Slide 79 text

Laravel - Routes /app/Http/routes.php http://laravel.com/docs/5.0/routing

Slide 80

Slide 80 text

Laravel - Controllers /app/Http/Controllers UserController.php

Slide 81

Slide 81 text

Laravel - REST Resource Controllers

Slide 82

Slide 82 text

Laravel - Database Queries

Slide 83

Slide 83 text

Laravel - Eloquent ORM ORM - Object Relational Mapping db table: users (plural, lowercase) eloquent model: User.php (singular, capitalize)

Slide 84

Slide 84 text

Laravel - Eloquent ORM app/User.php

Slide 85

Slide 85 text

Laravel - Eloquent - CRUD Create Read Update Delete

Slide 86

Slide 86 text

Laravel - Eloquent - CRUD

Slide 87

Slide 87 text

Laravel - Eloquent - Where Clause

Slide 88

Slide 88 text

Laravel - Eloquent - Mass Assignment

Slide 89

Slide 89 text

Laravel - Eloquent - JSON/Array

Slide 90

Slide 90 text

Laravel - Eloquent - Relationships ● One To One ● One To Many ● Many To Many ● Has Many Through ● Polymorphic Relations ● Many To Many Polymorphic Relations

Slide 91

Slide 91 text

Relationships - One to One

Slide 92

Slide 92 text

Relationships - One to Many

Slide 93

Slide 93 text

Relationships - Many to Many

Slide 94

Slide 94 text

Relationships - Has Many Through

Slide 95

Slide 95 text

Polymorphic Relations

Slide 96

Slide 96 text

Many To Many Polymorphic Relations

Slide 97

Slide 97 text

Laravel - Eloquent - Eager Loading X

Slide 98

Slide 98 text

Laravel - Eloquent - Eager Loading V

Slide 99

Slide 99 text

Laravel - Model Events ● creating ● created ● updating ● updated ● saving ● saved ● deleting ● deleted ● restoring ● restored

Slide 100

Slide 100 text

Laravel - Authentication

Slide 101

Slide 101 text

Laravel - Views

Slide 102

Slide 102 text

Laravel - Blade Template

Slide 103

Slide 103 text

Laravel - Blade Template

Slide 104

Slide 104 text

Laravel - Blade Template

Slide 105

Slide 105 text

Laravel - Localization

Slide 106

Slide 106 text

Laravel - Localization

Slide 107

Slide 107 text

Laravel - Localization

Slide 108

Slide 108 text

Laravel - Artisan CLI

Slide 109

Slide 109 text

Laravel - Artisan CLI

Slide 110

Slide 110 text

Laravel - Migrations database/migrations/XXXXXXXX_create_users_table.php

Slide 111

Slide 111 text

Laravel - Migrations

Slide 112

Slide 112 text

Laravel - Migrations

Slide 113

Slide 113 text

Laravel Database Seeding

Slide 114

Slide 114 text

Laravel - Resources Documentation Laravel 5 From Scratch What's New in Laravel 5.0