presentation of newsfront. case study using drupal, angular and solr

35
D7 + API + Angular DrupalCamp Oslo 2013

Upload: henrik-akselsen

Post on 26-May-2015

98 views

Category:

Technology


3 download

DESCRIPTION

Presentasjon av Newsfront, en publiseringsløsning for aviser og magasiner bygget for lynkjapp navigering på mobile enheter. Bygget på Angular og Drupal og tilgjengelig som Software As A Service (SaaS)

TRANSCRIPT

Page 1: Presentation of Newsfront. Case study using Drupal, Angular and Solr

D7 + API + AngularDrupalCamp Oslo 2013

Page 2: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Henrik Akselsen

DeveloperMostly backend@FrontHenrik

Page 3: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Om Frontkom

Page 4: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Per André RønsenCIO/Chief Innovation Officer

Fredrik PausCOO/Project Manager

Thor André GretlandSupport & Training

Geir GullandCEO / Web strategist

Frank GjertsenWeb Designer

Élio CróWeb Developer

Roberto OrnelasCTO Senior developer

Hélder MendesWeb Designer

Elisabeth GullandAccountant

Henrik AkselsenJS/Mobile UX

Jan-Helge HansenInfrastructure / support

Fábio NevesWeb developer

Marco Fernandes Senior Web developer

Bruno CamposWeb developer

WilmaQA Engineer ;)

Page 5: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Våre kontorer

Fredrikstad, Norway Funchal, Portugal

Page 6: Presentation of Newsfront. Case study using Drupal, Angular and Solr

“Vi trenger en webløsning for

magasinet vårt”- Flere kunder

Page 7: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Case: Newsfront= Frontend for magasiner

Page 8: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Prinsipper

Page 9: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Prinsipper

KJAPP

GOD ADMIN

APIENKEL THEMING

Page 10: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Drupal 7

★ God på admin/backend. The best.™

★ Avhengig av caching for å være kjapp // Finnes bedre verktøy for API // Ikke sterk på kjapp theming (no Twig)

GOD ADMIN

Page 11: Presentation of Newsfront. Case study using Drupal, Angular and Solr

DecouplingRett verktøy til rett jobb

Page 12: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Best of breed for hver del = Prinsippene ivaretas + unngå SPOF*

I’m frontend!

I’m backend!

Page 13: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Flat HTML?WGET + RSYNC (tenk: Jekyll møter Boost)

Page 14: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Newsfront (v0.1)

Page 15: Presentation of Newsfront. Case study using Drupal, Angular and Solr

API-basert!Power to the client

Page 16: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Arkitektur backend

Decoupled, performant, stable & nice

Site 1Admin repo

Site 2

APIClient repo

Oh Yeah™

Page 17: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Whoops, vi har allerede et API!

Solr som database

Page 18: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Solr som db: Why?

1. Brukes for søk, ingen ny teknologi2. Stabil Drupal-integrasjon ut av boksen3. Solr er rask 4. Skalerer (testet med benchmarks)5. Enkel hosting med websolr.com6. Viser seg at The Guardian har gjort noe

lignende

… vi gjorde noen POC, og: det funka!

Page 19: Presentation of Newsfront. Case study using Drupal, Angular and Solr

JSON fra Solr

Page 20: Presentation of Newsfront. Case study using Drupal, Angular and Solr

FrontendAngular.js

Page 21: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Rammeverk: Angular.js

MVC for frontend!

Når velger vi Angular.js?

● For moderne frontend-heavy prosjekter● Kan brukes direkte mot API● Ekstrem fleksibilitet, men enkelt● Når man allerede har en backend

Page 22: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Hvorfor Angular?

1. Vi trengte ingen serverbasert løsning (en annen app tar seg av betalingsmur etc)

2. “HTML for web apps”: Enkelt3. Angular har sterk community backing (+

Google)4. Ser ut til å “vinne” over Ember.js. Smartere

enn Backbone for store apps.5. Kjent og kjært: Vi har allerede brukt Angular

for andre ting

Page 23: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Markup med Angular

Page 24: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Speed

Page 25: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Speed

Page 26: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Frontend candyGrunt!

Phantom.js!

Page 27: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Snacks

Page 28: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Admin

Page 29: Presentation of Newsfront. Case study using Drupal, Angular and Solr

DrupalFokus på redaktør

Få modulerMange små features

WorkbenchScald

Drupal på sitt beste

Page 30: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Responsive preview, Drupal

Page 31: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Summa summarum

Page 32: Presentation of Newsfront. Case study using Drupal, Angular and Solr

ResultatSupersnappy

Lave serverutgifterEnkel å videredesigne

No VarnishAPI for tredjepart

Deilig Drupal backend SaaS

Bonus: Frontend funker med WP++

Page 33: Presentation of Newsfront. Case study using Drupal, Angular and Solr

One more thing….

Page 34: Presentation of Newsfront. Case study using Drupal, Angular and Solr

Frontmag

Page 35: Presentation of Newsfront. Case study using Drupal, Angular and Solr

THX@frontkom

@fronthenrik@perandre

www.newsfront.nowww.frontmag.no