Installation and Setup - shephertz/App42-API-Gateway-Sample GitHub Wiki

Installation and Setup Guide

System Requirement

JDK 6.0 or later
Maven 3.0 or later
MySQL 5.5 or later
Redis 2.6 or later
Cassandra 2.0 or later

Deploying Gateway Engine

Provide following configuration in config.properties available in the root directory of project.

### Server Port
SERVER_PORT = 8081

### Jar File Base Directory
JAR_FILE_BASE_DIR = file:////D:/work/dev/java

### Burst limit cache expiry..
EVICTOR_DELAY = 60
	
### Config and Settings cache expiry..
CACHE_EXPIRY_TIME = 60

### Redis Cluster Settings...
REDIS_MAX_CONNECTION = 20
REDIS_HOST = 192.168.1.11
REDIS_PORT = 6379
REDIS_TIMEOUT = 60000
METER_QUEUE_NAME = meter

### Cassandra Cluster Settings...
CASSANDRA_CONTACT_POINT1 = 192.168.1.11
CASSANDRA_CONTACT_POINT2 =  192.168.1.11
CASSANDRA_CLUSTER_NAME = gateway
CASSANDRA_SCHEMA = api_gateway.

### Gateway Internal Thread Settings
REQUEST_WORKER_THREADS = 40
METER_WORKER_THREAD = 50
QUEUE_LISTENERS = 5
SCHEDULER_WORKER_THREAD = 1

After above configuration, fire following maven command from base directory of Gateway project.

mvn install exec:java

This will install and run the Gateway Engine on configured port.

Installing Gateway UI Console.

Deploy this war file in any Servlet container like Tomcat/Jetty etc. Open following URL

http://<host>:<port>/gateway/config

This will open up configuration page and you have to provide information for MySQL/Redis/Cassandra Instances as shown below.

After configuration you can open management console using following URL to get started with creating and managing your API.

http://<host>:<port>/gateway/ 
⚠️ **GitHub.com Fallback** ⚠️