Created
January 29, 2021 14:32
-
-
Save lmas3009/c9d715a051812437e42fa310b27d210e to your computer and use it in GitHub Desktop.
Rest API using MEN (MongoDB,ExpressJs and NodeJs)
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
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