Created
June 20, 2018 10:19
-
-
Save rajatgeekyants/084df225cb71c30fc4803eb5f4bdb7ec 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
import express from 'express'; | |
const app = express(); | |
const PORT = 3000; | |
app.get('/', (request, response) => { | |
return response.json({ | |
msg: 'Hello World' | |
}) | |
}) | |
app.listen(PORT, () => { | |
console.log(`Server is running at PORT ${PORT}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment