Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

zooniverse/notes-from-nature-landing

Repository files navigation

Notes from Nature landing page

Landing page for Notes from Nature.

Usage

Install the dependencies:

npm install

Test:

npm run test

Development mode with livereload:

npm start

When you are done, create a production-ready version of the JS bundle:

npm run build

Deploy to production:

npm run deploy-production

Adding an Expedition

  1. Obtain the following from Science Team:

  2. Related Panoptes workflow ID and name from production project #1558

  3. Expedition "snippet", aka rollover text

  4. Image (reduce size, rename, as needed)

  5. Info icon link

  6. Update notes-from-nature-landing GitHub repo

  7. Create new branch

  8. Add items from Step #1 to src/constants/expeditions.js (see other expeditions in file for reference)

  9. Add image to src/images/expeditions/

  10. Test locally

  11. Create workflow in preview project #1613 (Notes from Nature on Staging) with same workflow name as step 1.i.

  12. Activate (if not already) just created preview test workflow via Project Builder, Visibility section

  13. Check for expedition on localhost

  14. Test expedition Info icon link

  15. Deploy to production
    Note: recommend deploying to production from new branch, if problem can redeploy quickly from master, can add and merge new branch after successful deploy.

  16. From Terminal run npm run deploy-production

  17. Wait, deploy may take up to 15 minutes.

  18. Edit related workflow image-layout via API
    Note: Replace 1234 with expedition workflow ID.

  19. workflowVariable = zooAPI.type('workflows').get('1234')

  20. workflowVariable.update({'configuration.image_layout':['no-max-height']})

  21. workflowVariable.save()

  22. Once deploy complete, activate workflow, push branch up to GitHub

  23. Let Science Team member know they're clear to activate workflow, or activate yourself via Project Builder, Visibility section

  24. If you activate, or after Science Team member has, confirm expedition properly shows on notesfromnature.org

  25. Push new expedition branch up to GitHub

  26. Create Pull Request, Merge, delete Branch

  27. Pull latest master down locally, (optionally) delete now merged expedition branch locally

License

Copyright 2016 Zooniverse

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.