Files
dolt/samples/js
Aaron Boodman 8fe85df1a4 Introduce samples/js/dropbox/slurp (#2702)
* Introduce samples/js/dropbox/slurp

Doing the filter step will be a bit different because Dropbox does
not provide secret URLs for every photo by default. Requests have
to be oauth-authenticated so we'll have to figure out how to do
that.

* vendor golang.org/x/oauth2 and golang.org/x/net

* Introduce oauthify and modify dropbox/slurp to use
2016-10-13 17:34:37 -07:00
..
2016-10-12 08:58:20 -07:00
2016-10-12 14:17:49 -07:00
2016-07-08 13:47:00 -07:00
2016-10-12 14:17:49 -07:00
2016-08-22 15:22:34 -07:00

JS Samples

This directory has a package.json and a node_modules directory. This is so that we do not have to do the slow npm install in every sample. Instead each sample have no dependencies and the dependencies are added to the shared parent directory. If we instead had complete standalone samples in every subdirectory it would would mean that we have to have n copies of all the node modules we depend on. This takes a long time to install and it takes up a lot of disk space.

Running a sample

First run npm install in this directory, then in the subdirectory.

cd js
npm install
cd ..
cd samples/js
npm install
cd fs
npm install

Then to run the sample:

node .

You only need to do the npm install calls once. After that you can use npm run build or npm run start for dev mode.