studio-frontend
React front end for edX Studio
Development
Requirements:
To install and run locally:
$ git clone git@github.com:edx/studio-frontend.git
$ cd studio-frontend
$ make up
You can append -detached
to the make up
command to run Docker in the background.
To install a new node package in the repo (assumes container is running):
$ make shell
$ npm install <package> --save-dev
$ exit
$ git add package.json
To make changes to the Docker image locally, modify the Dockerfile as needed and run:
$ docker build -t edxops/studio-frontend:latest .
Webpack will serve pages in development mode at http://localhost:18011.
The following pages are served in the development:
Notes:
The development server will run regardless of whether devstack is running along side it. If devstack is not running, requests to the studio API will fail. You can start up the devstack at any time by following the instructions in the devstack repository, and the development server will then be able to communicate with the studio container. API requests will return the following statuses, given your current setup:
Studio Running? | Logged in? | API return |
---|
No | n/a | 504 |
Yes | No | 404 |
Yes | Yes, non-staff account | 403 |
Yes | Yes, staff account | 200 |
Releases
Currently, the process for releasing a new version of our package is as follows:
- Make your changes in a pull request. Bump the version in package.json according to semver as part of the pull request.
- Merge your pull request.
- Publish a GitHub release. Make sure to prefix the version number with
v
, as in v2.3.4
. git checkout master
and git pull
. Ensure your current directory is cleaned, with no outstanding commits or files. As an extra precaution, you can rm -rf node node_modules
and npm install
prior to publishing.- Be a member of the correct edX and npm orgs, and be logged in. All of @edx/educator-dahlia should be set up, and others shouldn't need to be publishing this package.
- Run
npm publish
.
Getting Help
If you need assistance with this repository please see our documentation for Getting Help for more information.
Issue Tracker
We use JIRA for our issue tracker, not GitHub Issues. Please see our documentation for tracking issues for more information on how to track issues that we will be able to respond to and track accurately. Thanks!
How to Contribute
Contributions are very welcome, but for legal reasons, you must submit a signed individual contributor's agreement before we can accept your contribution. See our CONTRIBUTING file for more information -- it also contains guidelines for how to maintain high code quality, which will make your contribution more likely to be accepted.
Reporting Security Issues
Please do not report security issues in public. Please email security@edx.org.