diff --git a/app.js b/app.js new file mode 100644 index 0000000..e01df30 --- /dev/null +++ b/app.js @@ -0,0 +1,10 @@ +const express = require('express'); +const app = express(); +const path = require('path'); +const port = 3000; + +app.get('/', function(req, res) { + res.sendFile(path.join(__dirname + '/index.html')); +}); + +app.listen(port, () => console.log(`url-shortener listening on port ${port}!`)); \ No newline at end of file diff --git a/index.html b/index.html index bee3ea5..a9117eb 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@