Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

movableink/movable-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

movable-cli

Like ember-cli, but for Movable Ink apps.

Usage

yarn global add @movable/cli
movable new my-app
cd my-app
movable serve

This utility takes care of the following:

  • Creating new apps from the default app blueprint (movable new my-app)
  • Building apps (movable build)
  • Serving those apps from a webserver (movable serve)
  • Updating an app to the latest blueprint (movable init)

MDK Development

Everything below this point is about making modifications to the MDK itself. If you just want to use the MDK to build apps, you can find more documentation on the wiki.

Testing

Run all of the tests:

yarn run test

Local Usage

Check out this repository and install dependencies:

git clone https://github.com/movableink/movable-cli.git
cd movable-cli
yarn

Set up your PATH to use your local movable command:

export PATH=`pwd`/bin:$PATH

Now you can run commands like movable new using your local movable-cli. If you want to set up movable to use a non-production oAuth server, you can create a file such as ~/local-movable.sh where you set some environment variables:

export OAUTH_CLIENT_ID=changeme00000000000000000000000000000000000000000
export OAUTH_CLIENT_SECRET=changeme000000000000000000000000000000000000000000
export DASHBOARD_URL=http://localhost:3000
export DEPLOY_URL=http://localhost:4044

Then, to use the local endpoints, run source ~/local-movable.sh before you run movable login.

License

See LICENSE.md.