Skip to content

Instantly share code, notes, and snippets.

@ankit11421
Created May 24, 2020 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankit11421/d2b7198bbdfd9f5bbbb83fa50e8a129b to your computer and use it in GitHub Desktop.
Save ankit11421/d2b7198bbdfd9f5bbbb83fa50e8a129b to your computer and use it in GitHub Desktop.
const express = require("express");
const bodyParser = require("body-parser");
const ejs = require("ejs");
const mongoose = require("mongoose");
const app = express();
app.set("view engine", "ejs");
app.use(bodyParser.urlencoded({extended: true}));
app.use(express.static("public"));
//TODO
app.listen(3000, function(){
console.log("Server has started on port 3000.");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment