Created
May 24, 2020 17:15
-
-
Save ankit11421/d2b7198bbdfd9f5bbbb83fa50e8a129b 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
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