Skip to content

Commit

Permalink
feat(start info): improved start info with herbsshelf endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dalssoft committed Feb 19, 2022
1 parent ec3c907 commit 939cc21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ const cmd = {
const generators = (await generator(toolbox)).new
for (const layer of Object.keys(generators)) { await generators[layer]() }
const nextstep = `
The basic bootstrap project was generated! 🤩
You are ready unlock your domain! 🌿
A inital Herbs project was created! 🤩
You are ready to unlock your domain! 🌿
Next steps:
Expand Down
2 changes: 1 addition & 1 deletion src/templates/infra/api/graphql/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function graphql(app, config) {
server.applyMiddleware({ app: app, path: '/graphql' })

// eslint-disable-next-line no-console
console.info(`\n🖧 GraphQL endpoint - /graphql`)
console.info(`\n🔗 GraphQL endpoint - /graphql`)
}

module.exports = { graphql }
4 changes: 3 additions & 1 deletion src/templates/infra/api/server.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function herbsshelf(app, config) {
res.write(shelf)
res.end()
})
// eslint-disable-next-line no-console
console.info(`\n🌿 Herbs Shelf endpoint - /herbsshelf \n`)
}

async function start(config) {
Expand All @@ -26,7 +28,7 @@ async function start(config) {
return app.listen(
{ port: config.api.port },
// eslint-disable-next-line no-console
() => console.log(`🚀 Server UP and 🌪️ Spinning on port ${config.api.port}`))
() => console.log(`🚀 Server UP and 🌪️ - http://localhost:${config.api.port}/`))
}

module.exports = { start }
Expand Down

0 comments on commit 939cc21

Please sign in to comment.