Created
April 17, 2015 18:23
-
-
Save peterzawistowicz/be7091aae3e32aed0183 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var mongoose = require('mongoose'); | |
var stormpath = require('express-stormpath'); | |
var routes = require("./app/routes"); | |
var db = require('./config/db'); | |
var security = require('./config/security'); | |
var app = express(); | |
var morgan = require('morgan’); | |
app.use(morgan); | |
app.use(stormpath.init(app, { | |
apiKeyFile: './config/stormpath_apikey.properties', | |
application: ‘YOUR SP APPLICATION URL', | |
secretKey: security.stormpath_secret_key | |
})); | |
var port = 8000; | |
mongoose.connect(db.url); | |
app.use(bodyParser.urlencoded({ extended: true })); | |
routes.addAPIRouter(app, mongoose, stormpath); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 10 and line 14 contain mismatched quote (
'
) characters.