+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Create JavaScript adapters

You create adapters with Maven, the MobileFirst Platform CLI, or the MobileFirst Operations Console.

Parent topic: Work with JavaScript adapters


Create adapters by using Maven


Before you begin

To work with Maven, ensure that you have it installed. For more information, see https://maven.apache.org/install.html.


Procedure

In the command line, cd to the location for the new Maven project, then type in the following command:

mvn archetype:generate -DarchetypeGroupId=com.ibm.mfp -DarchetypeArtifactId=<adapter-maven-archetype-type> -DarchetypeVersion=<latest_version> -DgroupId=<created_project_groupId> -DartifactId=<created_project_artifactId> -Dversion=<created_project_version> The following is an explanation of the parameters for the archetype:generate command:


Create adapters using MobileFirst Platform CLI


Before you begin

Ensure that you have installed MobileFirst Platform CLI and Maven.


Procedure

In the command prompt, run the following command:

mfpdev adapter create <adapter_name> -t <adapter_type> -p <adapter_package_name> -g <maven_project_groupid> The following is an explanation of the parameters for the mfpdev adapter create command:


Create adapters with the MobileFirst Operations Console


Procedure

We can also create an adapter in the MobileFirst Operations Console by clicking New in the Adapters area and following the instructions.