db.js
This file
Path
examples/mvc/db.js
15 lines · 406 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than a10f695 point at it.
pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695
lines 1–15why, one step back12// faux database34var pets = exports.pets = [];56pets.push({ name: 'Tobi', id: 0 });7pets.push({ name: 'Loki', id: 1 });8pets.push({ name: 'Jane', id: 2 });9pets.push({ name: 'Raul', id: 3 });1011var users = exports.users = [];1213users.push({ name: 'TJ', pets: [pets[0], pets[1], pets[2]], id: 0 });14users.push({ name: 'Guillermo', pets: [pets[3]], id: 1 });15users.push({ name: 'Nathan', pets: [], id: 2 });