Skip to content

Lab 11 Assignment -- Nassir Isaf#10

Open
njisaf wants to merge 25 commits intocodefellows-seattle-javascript-401d10:masterfrom
njisaf:master
Open

Lab 11 Assignment -- Nassir Isaf#10
njisaf wants to merge 25 commits intocodefellows-seattle-javascript-401d10:masterfrom
njisaf:master

Conversation

@njisaf
Copy link
Copy Markdown

@njisaf njisaf commented Sep 27, 2016

No description provided.

Raziyehbazargan pushed a commit to Raziyehbazargan/lab-11-12-express-api that referenced this pull request Sep 27, 2016
Comment thread lab-nassir/README.md Outdated

## Express API -- CatAPI 2.0

CatAPI is proud to announce CatAPI 2.0! CatAPI 2.0 is not GUARANTEED to have way fewer crippling bugs!
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

Comment thread lab-nassir/README.md Outdated

# What's new in 2.0

CatAPI 2.0 now accepts PUT methods! If you have a cat and for some reason want to change its name, you may now do so. If your cat has changed its breed, CatAPI 2.0 now also permits CHANGING BREEDS. CatAPI 2.0 is the FIRST and ONLY cat-based API to have this feature! CatAPI supports equality.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

Comment thread lab-nassir/README.md Outdated

CatAPI 2.0 now accepts PUT methods! If you have a cat and for some reason want to change its name, you may now do so. If your cat has changed its breed, CatAPI 2.0 now also permits CHANGING BREEDS. CatAPI 2.0 is the FIRST and ONLY cat-based API to have this feature! CatAPI supports equality.

Also new in 2.0: Closing the server will now NOT erase all your data! This was our most requested feature, proving once again that customers come first at CatAPI.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😹

Comment thread lab-nassir/README.md Outdated

IMPORTANT: Don't get the easy-to-remember ID number wrong when using PUT. Trust us on this...

CatAPI can only record the name and breed of your cats. Attempting to enter additional information will return an error message. CatAPI was the first cat-based API to break in this fashion, and our competitors are COPYCATS.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐱

Comment thread lab-nassir/gulpfile.js
const eslint = require('gulp-eslint');
const mocha = require('gulp-mocha');

gulp.task('hello', function(){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You really like your hello task!

Comment thread lab-nassir/lib/storage.js Outdated
'use strict';

const Promise = require('bluebird');
const debug = require('debug')('note:storage');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you would want this to be 'cat:storage'

Comment thread lab-nassir/lib/storage.js
const createError = require('http-errors');
const fs = Promise.promisifyAll(require('fs'), {suffix: 'Prom'});
const del = require('del');
const mkdirp = Promise.promisifyAll(require('mkdirp'), {suffix: 'Prom'});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mkdirp doesn't require a prom suffix.

Comment thread lab-nassir/package.json
"mkdirp": "^0.5.1",
"morgan": "^1.7.0",
"node-uuid": "^1.4.7",
"superagent": "^2.3.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

superagent is technically a dev dependency.

Comment thread lab-nassir/lib/storage.js
.catch(err => Promise.reject(createError(404, err.message)));
};

// exports.availIDs = function(schemaName) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code! :o

})
.catch(err => done(err));
});
// after(done => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code :o

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants