Skip to content

Instantly share code, notes, and snippets.

@rajatgeekyants
Created June 20, 2018 10:19
Show Gist options
  • Save rajatgeekyants/084df225cb71c30fc4803eb5f4bdb7ec to your computer and use it in GitHub Desktop.
Save rajatgeekyants/084df225cb71c30fc4803eb5f4bdb7ec to your computer and use it in GitHub Desktop.
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