oe-cloud-cli
CLI for scaffolding oe-cloud based applications.
This project is modification of original project yeoman/yo
This project is changed from original project for,
- Changing the route
- Adding organisation specific documentation in help section
- Changing code to make it work with corporate proxy
- Organisation branding added
Please visit yeoman/yo for original documentation.
Installation
$ npm install -g oe-cloud-cli
$ oe
Use
Scaffold a new application
-
Run oe starter-app
to create a new oe-cloud application.
$ oe starter-app
-
The oe-Cloud application generator will prompt you for the name of the application. For example, type demo as the name of the application
-
Select what kind of application you want to create
3.1 If selecting oe-cloud-2.x (default selection)
![create-oe-cloud-2x](./img/create-oe-cloud-2.x.png)
3.1.1 If selecting **oe-cloud-2.x-server**
![create-oe-cloud-2xserver](./img/create-oe-cloud-2xserver.png)
3.1.2 If selecting **oe-cloud-2.x-serverUI**
![create-oe-cloud-2xserverUI](./img/create-oe-cloud-2xserverUI.png)
3.1.3 If selecting **oe-cloud-2.x-serverUI** and **Enable oe-studio**
![create-oe-cloud-2xstudio](./img/create-oe-cloud-2xstudio.png)
Press Enter to accept default value of Application Description, Version and Author. For oe-cloud 2.0 application, select oe-cloud modules from the checklist using Space Bar Button. Hit Enter to complete module selection.
3.2 If selecting oe-cloud-1.x
![create-oe-cloud-1x](./img/create-oe-cloud-1x.png)
Press Enter to accept default value of Application Description, Version and Author.
3.3 If selecting oe-cloud-ui
![create-oe-cloud-ui](./img/create-oe-cloud-ui.png)
Press Enter to accept default value of Application Description, Version and Author.
-
The generator will then display messages as it scaffolds the application including:
4.1 Initializing the project folder structure.
4.2 Creating default JSON and JS files.
4.3 Downloading and installing dependent Node modules (as if you had manually done npm install).
-
Run node .
to start the scaffolded server for oe-cloud 1.x and oe-cloud 2.x application
-
Run npm start
to start oe-cloud ui application
What's oe-cloud-cli?
oe-cloud-cli helps you to kickstart new projects, prescribing best practices and tools to help you stay productive.
Advanced CLI options
oe-cloud-cli provides the option to create model, datasource, property, relation, acl and middleware.
$ oe create datasource
$ oe create model
$ oe create property
$ oe create relation
$ oe create acl
$ oe create middleware
oe-cloud-cli also enables the user to perform few basic oe cloud functionalities from command line.
- default-ui: Allows the user the generate default UIRoute,NavigationLink and UIComponent for the selected Model.
- ui-route: Allows the user to enter initial data for UIRoute model
- navigation-link: Allows the user to enter initial data for NavigationLink model
- workflow: Allow user the attach workflow to a model from the selected list
- business-rules: Allow user to attach the business-rules to the model.
$ oe define default-ui
$ oe define ui-route
$ oe define navigation-link
$ oe attach workflow
$ oe attach business-rules