Landing page for Notes from Nature.
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
-
Obtain the following from Science Team:
-
Related Panoptes workflow ID and name from production project #1558
-
Expedition "snippet", aka rollover text
-
Image (reduce size, rename, as needed)
-
Info icon link
-
Update
notes-from-nature-landing
GitHub repo -
Create new branch
-
Add items from Step #1 to
src/constants/expeditions.js
(see other expeditions in file for reference) -
Add image to
src/images/expeditions/
-
Test locally
-
Create workflow in preview project #1613 (Notes from Nature on Staging) with same workflow name as step 1.i.
-
Activate (if not already) just created preview test workflow via Project Builder, Visibility section
-
Check for expedition on localhost
-
Test expedition Info icon link
-
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. -
From Terminal run
npm run deploy-production
-
Wait, deploy may take up to 15 minutes.
-
Edit related workflow
image-layout
via API
Note: Replace 1234 with expedition workflow ID. -
workflowVariable = zooAPI.type('workflows').get('1234')
-
workflowVariable.update({'configuration.image_layout':['no-max-height']})
-
workflowVariable.save()
-
Once deploy complete, activate workflow, push branch up to GitHub
-
Let Science Team member know they're clear to activate workflow, or activate yourself via Project Builder, Visibility section
-
If you activate, or after Science Team member has, confirm expedition properly shows on notesfromnature.org
-
Push new expedition branch up to GitHub
-
Create Pull Request, Merge, delete Branch
-
Pull latest master down locally, (optionally) delete now merged expedition branch locally
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.