Developing REST APIs with Node.js and HAPI

DATE: Thursday the 17th of March

This workshop will teach you how to use HAPI.js to craft awesome APIs with validation, caching, and, more importantly, how to code a data layer on top of MongoDB that will not cause headaches in production!

Take a look to the Special Package:
“1 Workshop + Conference Ticket”: we offer 15% DISCOUNT on the total price!
Click here to know how to obtain these discounts.

LANGUAGE
Italian

LEVEL
Intermediate

DURATION
The workshop is full-day (8 hours) from 9:00 to 18:00, with one hour lunch break.

CHECK IN: 8:30 – 9:00

LOCATION
Centro Congressi Cavour
Via Cavour, 50/a – Roma

PRICES:
Every 8 hours workshop’s ticket is fixed:
– to 125 € from the beginning of the sales till the 18th of February;
– to 160 € from the 19th of February till the 10th of March;
– to 190  from the 11th of March till the end of sales.

Take a look to the Special Package:
“1 Workshop + Conference Ticket”: we offer 15% DISCOUNT on the total price!
Click here to know how to obtain these discounts.

 

MATTEO COLLINA
Matteo is a code pirate and mad scientist. He spends most of his days programming in node.js, but in the past he worked with Ruby, Java and Objective-C. Matteo is a Software Architect at nearForm, where he consults for the top brands in world. Matteo is also the author of the Node.js MQTT Broker, Mosca and of the LevelGraph database. Matteo spoke at several international conferences: NodeSummit, Nodeconf.eu, LXJS, Distill by Engine Yard, and JsDay to name a few. He is also co-author of the book “Javascript: Best Practices” edited by FAG, Milan.

ABSTRACT
This workshop will cover how to set up your application for doing TDD, and how to expose a REST API using HAPI.js. HAPI is the framework that was developed by Wallmart to support all their API efforts: it’s solid and production ready. We will follow a TDD approach using Lab, the testing tool for HAPI! You will go schema-less with MongoDB, using HAPI.js native tools for validations: Joi. Then, you will learn how to structure your application to write testable and reusable code, without going into the spaghetti mess.

TABLE OF CONTENTS
0) installing node? (if needed, better if not)
1) Hapi.js to serve a JSON, and how to build your API
2) Store data in MongoDB while maintaining your sanity
3) Node.js basics
4) Streaming files, data, and pull-based interfaces

TRAINING OBJECTIVES
– learn the basics of Node.js
– learn the basics of HAPI
– learn how to do TDD with Lab
– learn how to use the native MongoDB driver
– learn how to structure your code into modules, and unit test them

WHO THE WORKSHOP IS DEDICATED TO?
Software developers coming from Java, .NET or PHP. This course do not assume any experience with Node.js or Javascript, but some basics around TDD are needed and not covered by this course.

PREREQUISITES NEEDED FROM ATTENDEES
– Basics of Javascript, just follow the workshopper “Javascripting” su nodeschool.io if want to fill you knowledge gaps
– Basics of Node.js, just follow the workshopper “Learn You Node” su nodeschool.io if want to fill you knowledge gaps
– Node.js (4.0+) installed on your laptop, preferably on Linux or Mac OS X
– If you are running Windows (7+) follow this guide: https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#environment-setup-and-configuration

HARDWARE AND SOFTWARE REQUIREMENTS

Have node.js 4.2+ installed (node -v), and MongoDB (3+).
If you are Mac OS X, you should also have installed XCode (and its command line tools), on Linux you should have gcc available, and on Windows you should have installed Visual Studio (the free community license is ok: https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx). On windows, you would also need to install Python 2.7.
There will be no time to install XCode or Visual Studio during the workshop, so you must have completed that step before coming.
After you are set up, you should familiarize yourself with Javascript and Node. It would be great if you have time to follow the workshppers
https://github.com/sethvincent/javascripting and https://github.com/workshopper/learnyounode. Don’t worry if you don’t have time, we’ll cover this along the way.

WARNING:
Seats are limited.
The workshop will be held only if the minimun number of attendees is reached.

Take a look to the Special Package:
“1 Workshop + Conference Ticket”: we offer 15% DISCOUNT on the total price!
Click here to know how to obtain these discounts.

Back to workshops list

Main Sponsor