-
Notifications
You must be signed in to change notification settings - Fork 9
Node
phila### Back To Home
download here - https://nodejs.org/en/
Node is a program you have to install, but you never open a GUI and see a program - it is more like a service that runs in the background. You can use it from the command line, but mostly you need it so that your other installations (npm or Yarn, Vue CLI) can use it.
Node sets up a system within your project that allows you to import and use code "modules" or "packages" that other people wrote.
A good explanation of how all of this works is the Node Package Manager (NPM) about section
Briefly: a code "module" or "package" is a project that is on the web and that you can automatically download and use easily. Every package has a file within it called "package.json." That file lists all of the dependencies (which are just other modules) of the module. So if you make a module a dependency of your project, all of the dependencies of that module automatically become dependencies of your project.
All of the dependencies (and dependencies of dependencies) of your project get stored in the folder "node_modules".
To "use" mapboard to make a website, you will run something which will put it into your package.json as a dependency (there are 2 ways to do this), and all of the code in mapboard (and all of its dependencies) will be downloaded to your "node_modules" folder automatically.
Note: if something is a dependency of @phila/mapboard (like @phila/vue-comps, @phila/vue-mapping, and @phila/vue-datafetch) then you do not have to make them dependencies of your project, since they will automatically be downloaded to your node_modules when you make @phila/mapboard a dependency of your project.