Configurar modelo en MongoDB
var mongoose = require('mongoose')
var Schema = mongoose.Schema
var userSchema = Schema({
username: String,
first_name: String,
last_name: String,
email: String,
password: String,
avatar: String,
online: Boolean,
});
module.exports = mongoose.model('User', userSchema);
Javasper