This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
courses: [ | |
{ | |
id: "clean-code", | |
title: "Clean Code: Writing Code for Humans", | |
watchHref: "http://www.pluralsight.com/courses/writing-clean-code-humans", | |
author: { | |
id: "cory-house", | |
name: "Cory House" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
//This file is mocking a web API by hitting hard coded data. | |
var courses = require('./courseData').courses; | |
var _ = require('lodash'); | |
//This would be performed on the server in a real app. Just stubbing in. | |
var _generateId = function(course) { | |
return course.title.replace(' ', '-'); | |
}; |