Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require("express");
- const mongoose = require('mongoose');
- const app= express()
- app.get('/',(req,res)=>{
- res.send('hello world');
- });
- const port = process.env.port || 3000
- app.listen(port,(req,res)=>{
- console.log(`listen port on ${port}`);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement