Skip to content
An IDE for JavaScript, without the "bad parts".
Branch: master
Clone or download
Latest commit 36cf1a9 May 10, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.


A web-based IDE for JavaScript, without the "bad parts".

See for an overview.

This is a README to get started hacking on Ocelot.


  1. You'll need the following:

  2. Be sure you're authenticated on Google Cloud and on your computer:

    gcloud auth login
    gcloud auth application-default login

    If this is the only GCloud project you are working on, set the project to PLASMA:

    gcloud config set project arjunguha-research-group

    Else, you will have to manually specify the project ID when deploying the backend:

    yarn deploy --project arjunguha-research-group

Build & Run Instructions

Follow these instructions to use the deployed versions of Stopify, and ElementaryJS with Ocelot.

To setup Ocelot frontend:

cd Ocelot/frontend && yarn install && yarn run build

To run Ocelot locally:

cd Ocelot/frontend
yarn run serve-local

To setup and run backend locally

cd Ocelot/backend
yarn install
yarn run build && yarn run serve

Development Instructions

Occasionally, you will want to hack on ElementaryJS (EJS), and will want to test out your changes before deploying them. To do so:

  1. Clone EJS:
  2. Install dependencies of EJS and build it (from within the EJS dir):
    yarn install
    yarn build
    yarn test
  3. Hack on EJS code, and re-build.
  4. Tell yarn to make the local version of EJS available to other projects (still within the EJS dir):
    yarn link
    Yarn should then tell you:
    yarn link v1.10.1
    success Registered "@stopify/elementary-js".
    info You can now run `yarn link "@stopify/elementary-js"` in the projects where you want to use this package and it will be used instead.
    Done in 0.03s.
  5. Change to the Ocelot frontend dir, delete any cached EJS libs, and tell yarn to use the local version of EJS:
    rm -rf node_modules/@stopify/elementary-js
    yarn link "@stopify/elementary-js"
    Yarn should tell you:
    yarn link v1.10.1
    success Using linked package for "@stopify/elementary-js".
    Done in 0.18s.
  6. Compile the ocelot frontend, and deploy it locally:
    yarn build && yarn serve-local
  7. Further changes to EJS will not require you to run the "link" steps again. Yarn remembers that you told it to use the local versions. Just recompile both EJS and the Ocelot frontend.

Once you are done hacking on the local EJS changes:

  1. Push a PR to EJS with the updates and the version number updated in package.json for EJS.
  2. Run npm publish to update the published version of EJS
  3. Create an Ocelot PR to use the newly deployed version of EJS by editing the EJS version number in package.json in Ocelot/frontend
  4. To tell yarn to go back to the published version of EJS: In the Ocelot/frontend directory:
yarn unlink "@stopify/elementary-js"
yarn install

Issues you may have

  • Delete this directory: rm -rf Ocelot/node_modules

  • There is a bug in the latest Yarn (1.7) that gives a stupid error when you use yarn install or yarn add after running yarn link:

    So, first run:

    yarn unlink stopify && yarn unlink elementary-js && yarn link stopify-continuations

    Then run yarn install or yarn add ...:

    then in Ocelot/frontend, run:

    yarn link stopify && yarn link elementary-js && yarn link stopify-continuations
You can’t perform that action at this time.