Skip to content

Instantly share code, notes, and snippets.

@klogic
Created March 9, 2019 13:03
Show Gist options
  • Save klogic/8f637cded77f033328daaac0469e0756 to your computer and use it in GitHub Desktop.
Save klogic/8f637cded77f033328daaac0469e0756 to your computer and use it in GitHub Desktop.
import { Response, Request } from "express";
const express = require("express");
const app = express();
const port = 3000;
app.get("/", (req: Request, res: Response) => res.send("Hello World!"));
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment