momi-foundation-coding/nodejs-api-cli

use process.env for PORT

Closed this issue · 2 comments

Make use of process.env for PORT value e.g

import dotenv from 'dotenv'

dotenv.config()

const port =  process.env.PORT || 8000

Hey, is it ok if I pick this up?

Yes, sure, take it