Created
September 17, 2017 07:24
-
-
Save Arieg419/acf197c05f6a2e83bd066adc51ee36b3 to your computer and use it in GitHub Desktop.
Simple node server
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 express = require('express') | |
const app = express() | |
app.get('/', (req,res) => { | |
res.sendFile(__dirname + "/index.html"); | |
}) | |
app.listen('8081') | |
console.log('Magic happens on port 8081') | |
exports = module.exports = app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment