A gateway to connect with Cockpit to transfer data between facilitator and provider databases to Cockpit Consoles for data management, provider management, report generation and various monitoring use cases. APIGateway will communicate with IOTGateway via Kafka to receive data from various devices.
- Install and Setup JDK.
- Install and setup MongoDB. Use this Guide for setup and populate MongoDB.
- Create an agent on API.AI. Please refer to the guide here.
- Take a pull/fork from this location on Github.
- Go to properties file at location -
<GIT Directory>/APIGateway/src/main/resources/application.yml - Update the properties here, mainly –
- API.AI Token
- MongoDB credentials
- Server Port
- This is a spring boot project so call following command to build the code –
mvn clean package -Dmaven.test.skip=true -Dspring.profiles.active=de - This would create a jar file in the target directory. Run following command to execute this Jar.
java – jar <Jar Name> --spring.profiles.active=dev - Test the jar by calling any URL in form –
http://<host>:<port>/ApiGateway/provider/devices/getDevices