PFE Lab is the UI interface for the Zooniverse Lab.
Install the dependencies:
npm install
Development mode with livereload:
npm run start
When you are done, create a production-ready version of the JS bundle:
npm run _build-production
Deployment is handled by Github Action. Both staging and production deployment can be run ad hoc in the actions tab as needed if you have the appropriate permissions on the repository.
On opening of pull requests, a Github Action is triggered to deploy to a branch staging location. The blob storage location depends on the pull request number, e.g. https://pr-214.lab-preview.zooniverse.org
. Note: For authentication, you will need to add the staged URL to Doorkeeper.
On push to master, a Github Action is triggered to deploy to master staging found at https://master.lab-preview.zooniverse.org
.
Production deployments are triggered by an update to which commit the production-release
tag is pointed to. This tag should be updated via chat ops and then a Github Action will run that builds and uploads the files to our cloud provider found at https://lab.zooniverse.org
.
-test.js
file.npm run test
.@extends
up top, then properties (alphabetically), then descendant selectors. display: flex
and flex-wrap: wrap
to explicit media queries wherever possible.eslint path/to/local/file.jsx
.Based on the Zooniverse Redux starter template, which in turn was based on the original React Starterify (used under the MIT License).
Copyright 2017 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.