zooniverse / pfe-lab

Project and Organization management functions for PFE
https://lab.zooniverse.org/
Apache License 2.0
0 stars 5 forks source link

Panoptes-Front-End Lab

PFE Lab is the UI interface for the Zooniverse Lab.

Usage

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

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.

Staging

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

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.

Testing

CSS Conventions

ESLint

Credits

Based on the Zooniverse Redux starter template, which in turn was based on the original React Starterify (used under the MIT License).

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.