momi-foundation-coding / nodejs-api-cli

This is a scaffold for generating new API-based application for NodeJS and its frameworks such as Express, kemboijs, koa, AdonisJs etc.
http://www.kemboijs.org/
MIT License
10 stars 13 forks source link

use process.env for PORT #107

Closed ezkemboi closed 4 years ago

ezkemboi commented 4 years ago

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

import dotenv from 'dotenv'

dotenv.config()

const port =  process.env.PORT || 8000
README1ST commented 4 years ago

Hey, is it ok if I pick this up?

ezkemboi commented 4 years ago

Yes, sure, take it