Skip to content

Instantly share code, notes, and snippets.

@1Marc
Created March 23, 2017 21:43
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 1Marc/1fcb0f07749bd20924a94f22146d1e26 to your computer and use it in GitHub Desktop.
Save 1Marc/1fcb0f07749bd20924a94f22146d1e26 to your computer and use it in GitHub Desktop.
Hapi.js Workshop Setup

Tools

Before we kick off the workshop, let's make sure you have everything you need to get going. At a minimum, you'll need Node.js and npm installed. If you don't already have them installed, you can find downloaders here. If you already have Node.js but haven't updated it in a while, please be sure you have at least version 6.9.

You probably already have one, but make sure you have a code editor. If you're looking for a new one, I recommend VS Code.

The Front End App

The focus of the workshop will be on building a data API with Hapi.js which will serve an already-prepared front end application built with Angular. The Angular app displays data about Front End Masters instructors and allows users to add new instructors in. The idea is to progressively build the API such that it gives the Angular app what it needs to operate, all while becoming familiar with how Hapi.js works.

While you don't really need to follow along with the Angular app, it is highly recommended that you do, as it will be the best way to round out your learning experience.

Grab the Angular app here and follow the instructions in the readme to get it running.

The Hapi API

We'll build the Hapi.js API step-by-step in the workshop, but there is a repo which has the whole thing finished already. There are various branches for the starting points and final solutions. It is highly recommended that you start with the unfinished branch for each module and code your way to the final solution. Grab the repo here and follow the readme for further instruction.

Get the Updated Repos

To make sure you have the most up-to-date code, be sure to do a git pull in the morning before the workshop starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment