Preview email before actually sending them using Node.js

Why does it matter to not send an email during development on local? At times, while doing development we tend to send an email intentionally or unintentionally to verify the email functionality for a specific feature which intern could lead to getting bombarded with testing emails which is of no use. Then it could be possible that the developer needed to reply on the same email saying, “Please ignore the last mail as it was by mistakenly sent during testing on local” The situation still could be handled with peace when the victim is the colleague of yours What if

Build Rails like console in Nodejs

Recently, our organization planned to migrate an internal application web API to Nodejs web API. We have everything to work on node app, but we were lacking a console where we can run queries and examine results to implement them in our controller or vice-versa. fig 1. Nodejs consoleWhat we have in Ruby on Rails frameworkrails_app $ rails c irb(main):005:0> User.first User Load (0.7ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 => #<User id: 1, email: "aravind@kiprosh.com"