GithubHelp home page GithubHelp logo

prakhar-goel / end-to-end-with-angularjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davemo/end-to-end-with-angularjs

0.0 2.0 0.0 768 KB

An intermediate/advanced look at how to use Angular JS in conjunction with a server-side.

end-to-end-with-angularjs's Introduction

end-to-end-with-angularjs

This repository covers material in 2 screencasts,

This is an extension of my screencast Intro to Angular JS that focuses more on intermediate/advanced topics and walks through creating a working web application on top of the Laravel 4 Web Application Framework.

Things you can expect to learn from End to End with Angular JS:

  • $http
  • $rootScope
  • taking the AuthenticationService we built earlier end-to-end
  • creating a FlashService for displaying alerts to users
  • access control for client-side routes with $rootScope and $routeProvider
  • $httpProvider.responseInterceptors and logging out users automatically if serverside sessions expire
  • $routeProvider.resolve property and making view rendering data dependent
  • laravel 4 migrations, controllers, models, and authentication

Things you can expect to learn from Security with Angular JS:

  • 3 common-sense ways to secure your web application
  • angular.constant
  • ng-init
  • ng-sanitize
  • Laravel CSRF support, route filters, and built in protection

Requirements:

Prerequisite Installation Instructions:

Installing PHP 5.4 and MCrypt is the most tedious part of getting up and running with this example, but Laravel 4 is so nice that I think it's worth it. Here's the basic instructions for getting up on Mac OS X:

  1. Install Homebrew
  2. Make sure you correct any problems that brew doctor detects
  3. Install Laravel 4
  4. Tap the PHP keg from @josegonzalez: brew tap josegonzalez/php
  5. Install PHP 5.4 brew install php55
  6. Install MCrypt brew install php55-mcrypt (this will automatically link the binary into the php.ini for you)
  7. Install Composer brew install composer (think of it like homebrew, or npm, or apt-get, but for PHP modules)

App Installation Instructions:

  1. clone this repo: git clone https://github.com/davemo/end-to-end-with-angularjs.git
  2. install composer dependencies composer install
  3. create a database called laravelapp
  4. create your unique security key php artisan key:generate
  5. run database migrations php artisan migrate
  6. seed the database php artisan db:seed
  7. run the app php artisan serve
  8. browse to http://localhost:8000 and log in with email [email protected] and password admin

Once you have the app up and running you can visit http://localhost:8000 and you will see the Login Form.

If you liked this code and screencast you should follow me on twitter: @dmosher

Happy Coding! :)

end-to-end-with-angularjs's People

Contributors

davemo avatar royedc4 avatar veeracs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.