Hey.
Create a folder structure as such in a place where you store your work.
AppJS-Dev
- node_modules <- its important that this folder is at the root of the folder.
- Project1 <- a project or thing youre working at.
-- Project1/app.sh (or whatever its called at your end)
-- Project1/data
- Project 2
-- Project 2/app.sh
-- Project2/data
You can duplicate the original apjs build you downloaded and use that for the projects. But in general, the node_modules you get with one appjs build should be at the root of that AppJS-Dev folder. Node goes backwards in all folders till the harddrives root and looks for the node_modules folder. So you only need one node_modules folder and can use it everywhere.
But once you want to deploy the app, put the node_modules folder back in place. Like when you have finished a project, you could create a new sub directory at appJS-Dev named "builds". Then you can issue a command such as this:
$ cp .../AppJS-Dev/Project1 .../AppJS-Dev/Builds/Project1; cp .../AppJS-Dev/node_modules .../AppJS-Dev/Builds/Project1/data
Replace the periods with the actual path to the folder - or use ./ if you are inside that folder already. Replace Project1 with the name where you put your new project into, and the name Builds - or the entire path - where you wanna store your results.
Hope it helped!
Regards, Ingwie.