Caplin-cli is a command line module to create Node.js apps
- Node v7.6+
npm install -g caplin-cli
caplin-cli init
This will generate the following folder structure:
apps/
packages/
packages-caplin/
caplin-cli create-app myapp j2ee-app
The newly created app will be placed in an apps folder. To start the app, cd
into the newly created app directory run npm install and npm start. This app
contains basic configuration for a jetty server.
caplin-cli create-component MyComponent react src
This will create a react component called MyComponent in the src directory. If you do not sepcify arguments for the create-component command you will be given dropdown options for the component name, type and location.
For a list of available commands and options, use the help command
caplin-cli help