Media Picker
Media Picker is Atlassian's toolkit for getting your customer's files to the Media API.
Documentation
You can read documentation on this page.
Setup
Media Picker consists of two sub-projects that both need to be set up.
First, install the dependencies:
yarn
(cd popup && yarn)
Second, build both projects (whenever you made changes):
yarn build-local
(cd popup && yarn build)
Development
Now spin up the development server:
yarn start
Open Chrome in unsafe
mode in order to override Access-Control-Allow-Origin
restrictions when using localhost
:
open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir
And finally open the example page from a local python server:
python -m SimpleHTTPServer 8080
open http://localhost:8080/lib/example/popup.html
Testing
yarn test
Requires yarn build-local
to create the necessary config files.