Software Engineer · Teacher · Author · Vegan

Makeup Midterm

Part 1 - Client-side Templating

Download the starter files.

Make an Ajax request to this endpoint and render each bookmarked restaurant using client-side templating with Handlebars.js.

Part 2 - Ember.js

Create a new Ember app and install ember-cli-mirage.

Build a mock REST API with Mirage for a user resource for the following operations:

This API should have a namespace of 0.0.1.

Use a Mirage factory and create randomized values for the following attributes using faker.js.

Also add an id property as follows:

id() {
  return faker.helpers.slugify(`${this.firstName} ${this.lastName}`);

This will build a URL slug from firstName and lastName for id, such as “David Tang”.

Next, build out the functionality for listing all users and viewing more details about a user.

The URLs for each page should be:

The user list page should only show the first and last name. The user detail page should show all attributes.

Create an About page with something unique. If you couldn’t figure out anything in Part 1 or 2 of the midterm, explain yourself on the About page for partial credit.

Lastly, add a header, navigation, and footer that displays on all pages without duplicating code on every route template. The navigation should have links to the home page (the user list page) and the About page.


For part 1, zip up your folder and name it “”.

For part 2, push it up to GitHub.

Email me both links.