Skip to content

potentially dangerous πŸ˜‰, top level package.json will interact with package.json of child projects using bash.

Notifications You must be signed in to change notification settings

md-web-app/potentially_dangerous_js_umbrella_application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

potentially dangerous πŸ˜‰, Javascript Umbrella Application:

top level package.json

will interact with package.json of child projects using bash.

umbrella

Not currently working, but how it should work:

Warning, many of these commands are dangerous
Make sure you know what you are doing.

In each directory, Run npm install as a background process

for d in ./*/; do (cd $d && npm install &>/dev/null &); done;,

In each directory, Run npm start as a background process

for d in ./*/; do (cd $d && npm start &>/dev/null &); done;,

In each directory, Tell the jobs what jobs are running.

for d in ./*/; do (cd $d && jobs); done;

In each directory, stop all jobs that have been created.

for d in ./*/; do (cd $d && kill $(jobs -p)| xargs kill);

The above bash scripts have been added in as script commands in the package.json.

To Do, what needs to be solved to get the program working:

The current obstacle in the project is related to the bash behavior.
The state management that is occouring in the for d in ./*/ is not allowing the jobs command to give a report of current jobs.
Because of low confidence in the result of the jobs command.
Currently have low confidence in the npm start command.

Status: The project is close to completion but not yet stable and has a current low confidence rating for effectiveness.

Installation:

git clone https://github.com/MichaelDimmitt/potentially_dangerout_js_umbrella_application.git;
npm install;
npm start;

After installation, you can verify that the program is working two ways:

Using bash:

jobs;

Using the browser

http://localhost:8010/v1/request0
http://localhost:8011/v1/request1
http://localhost:8012/v1/request2

useful links:

About

potentially dangerous πŸ˜‰, top level package.json will interact with package.json of child projects using bash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published