UNPKG

react-gif-picker

Version:
14 lines (12 loc) 413 B
var express = require('express'); var path = require('path'); port = process.env.PORT || 5000; express() .use('/public', express.static(__dirname + '/public')) .get('/', function(req, res) { res.sendFile(path.join(__dirname, '/index.html')); }) .listen(port, function() { console.log("Listening on " + port + "."); console.log("Go to <http://localhost:" + port + "> in your browser."); });