Created
April 28, 2016 22:05
-
-
Save ilkereroglu/91f8bf0d84f611a2d8279b867c3b0a75 to your computer and use it in GitHub Desktop.
Kendi Slackbot'unu yazmak
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 app = express(); | |
var port = process.env.PORT || 1666; | |
app.use(bodyParser.urlencoded({ extended: true })); | |
app.get('/', function (req, res) { | |
res.status(200).send('Çalışıyor...'); | |
}); | |
app.listen(port, function () { | |
console.log('Listening on port ' + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment