Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Dependencies
var express = require('express');
var mongoose = require('mongoose');
var bodyParser = require('body-parser');
// MongoDB
// mongoose.connection.on('error', function(){});
// Express
var app = express();
app.use(express.static(__dirname + './../public'));
app.use(bodyParser.urlencoded({ extended: true }));
// Routes
app.use('/api', require('./api/appointment/'));
// Start server
var port = 8080
, ip = "";
app.listen(port, ip, function() {
console.log('Express server listening on %d', port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.