Code Monkey home page Code Monkey logo

berlin-laravel-meetup's Introduction

This repo was used for the January Laravel Meetup It aims to show what is possible with the Laravel Framework, combined with the AngularJS Framework.

The App

The app we're going to build is a shopping list app.

Basic functionality (will be implemented at the beginning, during the 20 first minutes)

  • Adding an item
  • Viewing items
  • Checking/Unchecking item
  • Deleting item
  • Grouping items by checked/unchecked

Advanced articles to answer questions more specifically

There's a very interesting article about DOM-caching in angular: http://blog.scalyr.com/2013/10/31/angularjs-1200ms-to-35ms/

To bind html instead of just text (but the input still gets sanitized, so the script tags will be removed), you have to use ng-bind-html and trust the input using http://docs.angularjs.org/api/ng.$sceDelegateProvider.resourceUrlWhitelist(['self',...]);

Have a look at the Batarang Chrome extension, which creates a special tab in Chrome Developper tools to debug your AngularJS App (and shows which parts aren't performant) https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk

Advanced features (you choose which one you'd like to see)

  • Grouping items by type: vegetables, meat, fish, ... --- uses relationships
  • Creating multiple lists --- uses nested resources URL: lists/5/items

More advanced features

  • Laravel API security --- uses filters
  • Rate limiting --- uses filters

What I did step by step

  • running composer [done]
  • importing vendor files in public/js/vendor [done]
  • importing jeffrey ways generator tool: https://github.com/JeffreyWay/Laravel-4-Generators [done]
  • run command: php artisan generate:scaffold item --fields="name:string,number:int,checked:boolean" [done]
  • run migration and seeding [done]

berlin-laravel-meetup's People

Contributors

edi9999 avatar

Stargazers

 avatar  avatar

Watchers

 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.