Created
April 26, 2018 19:05
-
-
Save kazagkazag/9e9fde2cfd397eeedc29f4d4d8bbfd0d 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
const restify = require("restify"); | |
// create server instance | |
const server = restify.createServer(); | |
// use plugins to parse body and query string of incoming requests | |
server.use(restify.plugins.queryParser()); | |
server.use(restify.plugins.bodyParser()); | |
// start listening | |
server.listen(4000, () => console.log("Up and running on port 4000")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment