AppServer8 (Local Development Setup)

Home » AppServer » AppServer8 (Local Development Setup)
AppServer, Java No Comments

Checkout source codes:

>git clone https://bitbucket.org/sl_main/appserver8.git

AppServer8 is a Maven based Sprint Boot project.

AppServer8 runs on port 6888.

Config File

Copy “appserver.test.txt.template” and save-as “appserver.test.txt”.

Local Database Setup:

  • Install and run MySQL (localhost, port 3306)
  • Create a database called “sportlogic”
  • Create a database user called “appserver” with password “appServerPass”
CREATE USER 'appserver'@'localhost' IDENTIFIED BY 'appServerPass';

GRANT ALL ON sportlogic.* to 'appserver'@'localhost';

GRANT SELECT,INSERT ON sportlogic.customer_connection_logs to 'appserver'@'localhost';

FLUSH PRIVILEGES;
  • Grant “appserver” access to “sportlogic” database.

API Key

Create a local API key – this is useful for local testings:

INSERT INTO api_keys (API_KEY,API_PASSWORD,API_ACTIVE,API_DESCRIPTION,API_ACCESS_AREAS,VERSION) VALUES ('localKey','pass123',1,'Local appserver','GetSportLogicCustomerByCustomerId,GetSportLogicCustomerByClientId,IsValidClientLoginId,UploadDatabaseBackupToS3,GetSportLogicCustomersByRemotingHost,GetConfig,GetLicenseByCustomerId',0);

Running AppServer:

Run Java class: com.sportlogic.server.appserver8.AppServer