Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


This project implements a Twitter like API using Spring MVC and Spring jdbc support.

Building and running

The project is mavenized and can be build by running

  mvn clean package

which will produce the file target/tlapi.war that you can deploy to an application container (tested with Tomcat 7).

In order to configure the persistency layer customize the file src/main/resource/ specifying:

  • hostname of the MySQL server
  • tlapi.db.port: MySQL server port
  • Name of the tlapi database
  • tlapi.db.user: Database user
  • tlapi.db.password: Database password

You can use the sequel script bootstrap-db.sql to create the database structure and populate it with sample data.
Once the application is deployed you can run the script to test the code and have an overview of the implemented feature.
The script must be started providing the host and the port of the application container hosting tlapi. For instance if you deployed tlapi.waron a default Tomcat installation on you local machine you would invoke:

python localhost 8080

(Please note that the script depends on the requestspackage which you can install via pip:

pip install requests

##Standalone docker container
In order to make the testing of the software as painless as possible, a batteries included docker image has been prepared.
You can fetch it and running it using these commands:

docker pull nivox/tlapi
docker run -p 8080:8080 nivox/tlap

This will start a container hosting MySQL and Tomcat, initialize the database and deploy the software on the application container.
As soon as the startup is completed you should be able to start the test script:

python <dockerhost> 8080
Docker Pull Command
Source Repository