Vedantu External-Integration API server-side code for Institutes for integration of Vedantu with Institute's Systems. This enables Vedantu to communicate with the Institute’s Systems.
Download the latest release of vedantu-ei-api from GitHub.
| Details | |
|---|---|
| Platform | Java 6 tested with: java version "1.6.0_30" Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode) also with: java version "1.4.2" |
| Build system | Ant (1.8.2 or above) tested with: Apache Ant(TM) version 1.8.2 |
| Application Server | Apache Tomcat tested with: Apache Tomcat 7.0.42 Apache Tomcat 5.5.12 |
The code can be built using Ant on a shell prompt. The build refers lib and common/lib folders (if any of them is available) for compilation (so as to pick the appropriate servlet jars).
The build needs two environment variables:
- JAVA_HOME
- APP_SERVER_HOME
These variables can be set by creating a build.properties file in the project (this is a local file) and putting the following properties in it:
- REQ_JAVA_HOME
- REQ_APP_SERVER_HOME
A sample build.properties file:
REQ_JAVA_HOME=/usr/local/j2sdk1.4.2
REQ_APP_SERVER_HOME=/usr/local/apache-tomcat-5.5.12
The next step is to actually build the project. This can be done by running the build.sh from a shell:
./build.shThe above procedure allows the project to be compiled against different versions of JAVA and Application Servers.
Once you build you will find the following files in the dist folder:
- vedantu-ei-api.jar
- vedantu-ei-api.war
Manager configuration needs to be specified in managers.properties file. This file needs to be on the path at runtime.
managers.properties file can be found in the following locations:
| Location | |
|---|---|
| code-base | conf folder |
| war file | WEB-INF/classes folder |
| jar file | Absent. |
| Manager | Key | Sample |
|---|---|---|
| IUserManager | user.manager.class | com.vedantu.ei.managers.sample.SampleUserManager |
| IUploadManager | upload.manager.class | com.vedantu.ei.managers.sample.SampleUploadManager |
- docs/vedantu-ei-api.pdf - Contains details of requirements and architecture.