Skip to content

Instantly share code, notes, and snippets.

@lmas3009
Created January 29, 2021 14:32
Show Gist options
  • Save lmas3009/c9d715a051812437e42fa310b27d210e to your computer and use it in GitHub Desktop.
Save lmas3009/c9d715a051812437e42fa310b27d210e to your computer and use it in GitHub Desktop.
Rest API using MEN (MongoDB,ExpressJs and NodeJs)
import express from 'express'
var app = express()
var port = process.env.PORT || 8080
app.get("/", function (req, res){
res.send( "Welcome to Tutorial of REST API using MongoDB, ExpressJS and NodeJS");
})
app.listen(port)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment