const express = require('express')
      const app = express()
      require('dotenv').config()
      const port = process.env.PORT || 5000
      
      // !important! 
      // you need to install the following libraries |express|[dotenv > if required]
      // or run this command >> npm i express dotenv 
      
      app.get('/' , (req , res)=>{
      
         res.send('hello from simple server :)')
      
      })
      
      
      app.listen(port , ()=> console.log('> Server is up and running on port : ' + port))
      Javascript language logo
      your recipe card header background

      create express server

      MERN cookbook

      Library: express

      Shortcut: app

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.