momi-foundation-coding/nodejs-api-cli

Change welcome to my first app to welcome to nameOfApp

Closed this issue · 7 comments

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

I can help with this!

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

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

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

Can I pick this up please?

Sure. Thanks for your contribution @README1ST