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

Change welcome to my first app to welcome to nameOfApp #99

Closed ezkemboi closed 4 years ago

ezkemboi commented 4 years ago

Is your feature request related to a problem? Please describe.

Inside the src/routes/index.js, the following code is created

router.get('/', (req, res) => {
  res.status(200).send({
    message: 'Welcome to my first app'
  })
})

Describe the solution you'd like I would suggest having it created as

router.get('/', (req, res) => {
  res.status(200).send({
    message: 'Welcome to ${nameOfTheApplicationUsedToCreate}'
  })
})

Where the nameOfTheApplicationUsedToCreate is the name that the user input when doing nodejs-api-cli init

Describe alternatives you've considered Any suggestion is welcome

Additional context N/A

leonardxfce commented 4 years ago

I can help with this!

ezkemboi commented 4 years ago

Sure @leonardxfce.

ezkemboi commented 4 years ago

Just raise a PR and I will take a look. If all is well, then I will go ahead, review and merge.

leonardxfce commented 4 years ago

Apologies for this but it task is too difficult for me. I'll leave.

ezkemboi commented 4 years ago

If you need any help with this, I can offer it. There are also other tasks that are easier. Just do let me know how I can help

README1ST commented 4 years ago

Can I pick this up please?

ezkemboi commented 4 years ago

Sure. Thanks for your contribution @README1ST