mCAP CLI

The command line interface

Agenda


  • Instruction in the mCAP CLI
  • Generating an App with the CLI
  • Intro to project structure
  • Deploy it to a mCAP
  • Publish the app to relution.io
  • Hands-On

Install



  1. git clone https://github.com/mwaylabs/mcap-cli.git

  2. cd mcap-cli

  3. npm install

  4. npm link (make it accessible from everywhere)

First run






Type  mcap  in your console and press enter!

Let's build an APP




  1. Type  mcap new  in your console and press enter!

  2. Answer the questions

  3. Then  cd  into the generated folder



The project structure

Add a server



  1. Type  mcap server  in your console and press enter!

  2. Answer the questions 

Deploy it!




Just run  mcap deploy  

Open the preview link in your browser



Add mcap.js

Publish to relution.io




Run  mcap publish  

Generate a model



  1. Type  mcap generate model  in your console and press enter!

  2. Answer the questions 



Hands-on

Task:





Implement a delete button 
in the detail view


Any questions,

ideas or suggestions?




THANK YOU

mCAP CLI

By Stefan Buck

mCAP CLI

  • 302