Created
June 9, 2016 10:58
-
-
Save mozkurt27/4d100e10540cd6e231413fedc31d1e61 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 path = require('path'); | |
var bodyParser = require('body-parser'); | |
var functions = require('./modular_functions'); | |
var app = express(); | |
app.set('views', path.join(__dirname, 'views')); | |
app.set('view engine', 'ejs'); | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded()); | |
app.use(express.static(path.join(__dirname, 'public'))); | |
app.get('/', homepage); | |
app.get('/tweets', get_tweets); | |
app.get('/display', display_tweets); | |
app.set('port', process.env.PORT || 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment