Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
vms:webdev:nodejs:riot [2015/09/14 18:09] admin |
vms:webdev:nodejs:riot [2017/03/31 15:13] (current) admin ↷ Links adapted because of a move operation |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| **NOTE for VirtualBox VMs shared folders:** | **NOTE for VirtualBox VMs shared folders:** | ||
| - | If you are using a VirtualBox shared folder for your dev files, then you have to “prepare” it for correct symlinks operations from your host computer command line: See [[:vms:webdev:apache#create_the_shared_www_folders|Create VirtualBox shared folder]] and [[:vms:django#virtualbox_symlinks_inside_shared_folders|Virtualbox: Symlinks inside shared folders]] in this wiki. | + | If you are using a VirtualBox shared folder for your dev files, then you have to “prepare” it for correct symlinks operations from your host computer command line: See [[:vms:webdev:apache#create_the_shared_www_folders|Create VirtualBox shared folder]] and [[vms:python:django#virtualbox_symlinks_inside_shared_folders|Virtualbox: Symlinks inside shared folders]] in this wiki. |
| Let's init our project | Let's init our project | ||
| Line 28: | Line 28: | ||
| </code> | </code> | ||
| - | Basicaly what this will do is write to the //**package.json**// file at the root of your project. It translates to the following: | + | Basicaly what this will do is write to the //**package.json**// file at the root of your project, also adding a //**node_modules**// directory there. It translates to the following: |
| <code> | <code> | ||
| > nano package.json | > nano package.json | ||
| Line 43: | Line 43: | ||
| </code> | </code> | ||
| - | Refer to [[https://drublic.de/blog/npm-builds/|this great article by Hans Christian Reinl]] for a good starting reference about a modern dev environment setup. | + | Once you share your code with others, they'll simply have to issue: |
| + | <code> | ||
| + | > npm install | ||
| + | </code> | ||
| + | |||
| + | To make sure all required Node Packages are available to the project. | ||
| + | |||
| + | Refer to [[https://drublic.de/blog/npm-builds/|this great article by Hans Christian Reinl]] for a good starting reference about a setup a modern dev environment using npm. | ||