Client Application
Introduction
This tool has been designed as a client-server because we need to access your local filesystem and unfortunately it’s not possible with a web application only. The client application is responsible for the following:
-
Authentication and authorization
We ask for your credentials before proceeding to do any code generation.
-
Send authenticated requests to our public API so it can be securely processed by the backend services.
-
Finalize the process by writing the files in the local filesystem with the code files generated in the backend.
Install Client Application
-
It requires NodeJs v10 or later to install.
Run the following command with administrator privileges to get the client application:
npm install -g @dynamo-code/dynamocode
Open the command line application in your operating system
Supose that src is the root folder in your folder structure and this folder is located inside the ECommerce folder in your file system. Then the command line application must be positioned in ECommerce folder.
Log in in client application
Authenticate the client application by using this command and entering your credentials:
-
Command:
dynamocode login
Execute the command in the client application
Execute this command to generate the code files in your computer:
-
Command:
dynamocode exec -e <entity id> -t "<templates id>"
-
You don't need to tape this command manualy because we generate it for you in the web application. You only will copy it from the web application and paste it in the client application.