Skip to content

Instantly share code, notes, and snippets.

View kevinchisholm's full-sized avatar

Kevin Chisholm kevinchisholm

View GitHub Profile

MongoDB Logo

Code Examples for my Blog Post: XXXXX

@kevinchisholm
kevinchisholm / _node-basic-websocket-server.md
Last active November 29, 2023 10:25
Code Examples for my Blog Post: Create a Node.js Websocket Server in Five Minutes
@kevinchisholm
kevinchisholm / _jquery-each-method.md
Last active January 20, 2018 17:15
Iterating Over a DOM Collection with the jQuery.each Method
@kevinchisholm
kevinchisholm / __node-file-uploads-multer.md
Last active March 4, 2018 16:31
Node File Uploads with Multer
@kevinchisholm
kevinchisholm / bookListController.js
Last active May 28, 2018 10:52
CRUD application code using nodejs,expressjs and mongodb
'use strict';
var mongoose = require('mongoose'),
Book = mongoose.model('Books');
exports.create_book = function(req, res) {
var new_book = new Book(req.body);
new_book.save(function(err, book) {
if (err)
res.send(err);