Skip to content

Using express as a child process in a Node.js app, where the child has no access to database and ask all data from parent with a simple async function call

License

Notifications You must be signed in to change notification settings

omidnavy/nodejs-child-process-express-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Child Process Nodejs Boilerplate

A boilerplate to use express server as a child process in Node.js app

"I was working on an application where I needed to isolate my api gateway , for security reasons and to keep my main app free from handling rest calls, so I made and use a separate express app as a child process in my Node.js app, and now I'm sharing this as a boilerplate for those who got same situation. This is not useful only for express, actually it's gonna work in all situations where the child process want to ask a question from it's parent, and needs the response,this will make everything easier, just as simple as calling an async function. "

To run this example all you need is to have a clone of this project, npm install and npm start

The dependencies are "uuid" and "express" where the express can be removed or modify to suit your needs.

About

Using express as a child process in a Node.js app, where the child has no access to database and ask all data from parent with a simple async function call

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published