Skip to content

TransiTime Building

Bodo Minea edited this page Dec 1, 2021 · 5 revisions

Downloading and building the software

git clone https://github.com/TheTransitClock/transitime.git
cd transitime/
mvn install -DskipTests

Now, with the JARs in place, we will generate the database table structures and import as follows - structs and webstructs for your first and main agency database (the one that will hold the list of WebAgencies), only structs for the other agency databases.

java -jar transitclock/target/SchemaGenerator.jar -o /tmp -p org.transitclock.db.structs
java -jar transitclock/target/SchemaGenerator.jar -o /tmp -p org.transitclock.db.webstructs
mysql -u DB_USER -p -D DB_NAME < /tmp/ddl_mysql_org_transitclock_db_structs.sql 
mysql -u DB_USER -p -D DB_NAME < /tmp/ddl_mysql_org_transitclock_db_webstructs.sql
mysql -u DB_USER -p -D SECONDARY_NAME < /tmp/ddl_mysql_org_transitclock_db_structs.sql 
(...)
Clone this wiki locally