ara-cli v1.0.0-alpha.5
Ara Framework CLI
Scaffolding tool for Ara Framework
Installation
You can install the package from npm.
npm i -g ara-cliUsage
Create Ara Project
ara new:project ara-demoCreate Nova Microfrontend
ara new:nova <project-folder>By default the scaffolding for nova uses a Vue.js template but you can use more passing the flag -t, --template
Supported templates:
- vue
- angular
- svelte
- preact
- hyperapp
ara new:nova -t angular <nova-folder>Run Hypernova (Nova) Lambda locally
Run command:
ara run:lambdaServe the client script locally using an S3 local server:
ara run:lambda --assetRun Nova Proxy
Nova Proxy needs a configuration file:
{
"locations": [
{
"path": "/",
"host": "http://localhost:8000",
"modifyResponse": true
}
]
}Before to run the command we need to set the HYPERNOVA_BATCH variable using the Nova service endpoint.
export HYPERNOVA_BATCH=http://localhost:3000/batchThe command uses a configuration file named nova-proxy.json in the folder where the command is running, otherwise you need to pass the --config parameter with a different path.
ara run:proxy --config ./nova-proxy.jsonRun Nova Cluster
Nova Cluster needs a configuration file in order to map the views with their nova servers.
{
"Navbar": {
"server": "http://localhost:3031/batch"
},
"Home": {
"server": "http://localhost:3030/batch"
}
}The command uses a configuration file named views.json in the folder where the command is running, otherwise you need to pass the --config parameter with a different path.
ara run:cluster --config ./views.json5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago