Boilerplate for frontend-focused NodeSchool lessons
WORK IN PROGRESS. Come back later? :)
A boilerplate for creating your own frontend-focused NodeSchool lessons, not unlike shader-school.
Can be run as a vanilla node server, or bundled up as a node-webkit app. The latter case is great for getting something installed without hitting the terminal, among a bunch of other benefits. Currently only OSX is supported this way, but I imagine it wouldn't be too hard to get the same working for Windows/Linux – if you have some time to spare, pull requests would be very much appreciated!
This forms the base of an upcoming WebGL workshop being created for CampJS.
Parts of this may be refactored into independent packages in the future, but right now I'm in a haste to get this together!
Requires npm 2.x.x
.
git clone [email protected]:hughsk/workshop-app-shell.git
cd workshop-app-shell
npm install
npm start
npm start
make clean build
In this project, each exercise is treated as an independent package, i.e. a
directory with its own package.json
file, dependencies and so on. You're also
given almost full control with your exercise – it's essentially just a vanilla
route handler. See the exercises
directory for a few existing
examples.
The steps are as follows:
exercises
. The name of this directory is notpackage.json
file in there, with main
pointing to server.js
andname
being @exercise/my-exercise-name
. This name will be used acrossexercises/bare/server.js
into your new exercise directory.exercises.json
, where the key should be the exercise namename
propertypackage.json
.npm install --save exercises/*
from the project root to update theNext time you run the server you should be good to go!