Code 401: Advanced Software Development in Full-Stack JavaScript
Code Fellows, January 2016
Author: John Hearn
I wanted a set up where I can quickly and easily create a new javascript file, execute it from the terminal, and see some console and/or browser output. This playground has all of my commonly-used modules installed, though you probably won't need a lot of them most of the time.
Getting started: After you fork or clone the repo to your machine, you probably want to
-
install the node modules listed in the package with
npm i
-
checkout a new branch with
git checkout -b foo
you'll edit the code inwww/js/index.js
that allowed you to run your old code, so this way you can always get it back by checking out the correct branch for whatever you were working on before. -
create a new js file to play with, e.g.
touch ./www/js/foo.js
or copy one of the templates, such ascp ./templates/module_template.js ./www/js/foo.js
-
blow away whatever is in
www/js/index.js
include your new js file, and put your code to generate some output here. -
run your code with either
npm start
,npm run webstart
ornpm test
as appropriate.