Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Full­stack developer with Django and AngularJS

Full­stack developer with Django and AngularJS

A training session for Django and Angular newcomers

Massimiliano Pippi

April 26, 2014
Tweet

More Decks by Massimiliano Pippi

Other Decks in Technology

Transcript

  1. Full Stack? ‘00: Linux, Apache, MySql, PHP (LAMP) Today: Linux,

    WSGI, Postgres, Python, SPAs SPA = Single Page Application (JS, Dart)
  2. Schedule • Design and implement a Reddit clone (60min) •

    Expose a REST Api for the service (45min) • Run the service locally (10min) • Pause (10min) • Design and implement a SPA with Angular (60min) • Make the app talk with the service and enjoy (55min)
  3. Business Model Link title (type: text) url (type: url) upvotes

    (type: int) downvotes (type: int) nsfw (type: boolean)
  4. The Router URL Style HTTP Method Action URL Name [.format]

    GET root view api-root {prefix}/[.format] GET list {basename}-list {prefix}/[.format] POST create {basename}-list {prefix}/{lookup}/[.format] GET retrieve {basename}-detail {prefix}/{lookup}/[.format] PUT update {basename}-detail {prefix}/{lookup}/[.format] PATCH partial_update {basename}-detail {prefix}/{lookup}/[.format] DELETE destroy {basename}-detail {prefix}/{lookup}/{methodname}/[.format] GET @link decorated method {basename}-{methodname} {prefix}/{lookup}/{methodname}/[.format] POST @action decorated method {basename}-{methodname}