Skip to content

Instantly share code, notes, and snippets.

View Adetona's full-sized avatar
🎯
Focusing

Abiodun Adetona

🎯
Focusing
View GitHub Profile
@Adetona
Adetona / index.js
Created October 28, 2017 06:41 — forked from jfensign/index.js
NodeJS User Registration and Authentication
//index.js
var express = require('express'),
app = module.exports = express.createServer(),
mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/nodeAuth');
//configure app
app.configure(function() {
app.set('views', __dirname + '/views');