Skip to content

Instantly share code, notes, and snippets.

@gaurangrshah
Created October 14, 2020 01:16
Show Gist options
  • Save gaurangrshah/3ad603ee72d1fa7f48ef4202e8a730e4 to your computer and use it in GitHub Desktop.
Save gaurangrshah/3ad603ee72d1fa7f48ef4202e8a730e4 to your computer and use it in GitHub Desktop.
#koa #basic #server
// server.js
const Koa = require("koa");
const Router = require("koa-router");
const bodyParser = require("koa-parser");
const app = new Koa();
const PORT = 4000;
app.listen(PORT);
console.log(`server is listening on PORT: ${PORT}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment