The fifth incarnation of OW, built as a custom Angular app. This is a little different from other Zoo apps as it uses a Makefile
along with Gulp to carry out build / deployment tasks.
- Node / NPM
- Bower
npm install -g bower
- s3cmd
brew install s3cmd
if on OS X
- Clone the repo
- Run
make install
inside the repo directory
Running make run
starts the project at http://localhost:8000/
, and the ngDoc server at http://localhost:8001/
. There are git hooks to run JSLint on commit.
- Requires the environment variables
AMAZON_ACCESS_KEY_ID
andAMAZON_SECRET_ACCESS_KEY
Running make deploy-preview
deploys both project and docs to https://preview.zooniverse.org/oldweather
and https://preview.zooniverse.org/oldweatherdocs
respectively.
Running make deploy-production
deploys the project only to http://www.oldweather.org
- If you get errors when trying to deploy and you haven't run the dev
make run
cmd, then run the default gulp task to build the required files.gulp
- Upload your new set to Panoptes
- Associate the new subject set with the
Annotation
workflow in the workflow editor - Modify your subject set metadata to include the following data (both strings):
metadata: { active: "true", shortName: "SHIP_NAME" }
- Add any extra info to
ShipsDetailConstants
as required
- The build task doesn't rebuild the project templates, so if you're just looking to do a simple HTML change, you'll need to e.g. run the dev server for those changes to take effect.