Sign inSign up

valiro21/fasttrainservice

By valiro21

Updated over 9 years ago

Server and Client implementation of an application that allows users to see and update timetables

Image
0

344

valiro21/fasttrainservice repository overview

FastTrainService

A C++ application for managing train arrivals, departures and routes

Code Climate Issue Count Docker Pulls Docker Build license Docker Repository on Quay Docker Repository on Quay

SetUp

Variant One - Classic

For building the project, you will need the following packages to be installed:

libssl-dev neo4j-client libneo4j-client-dev qt5-default qtlocation5-dev libqt5location5-plugins

Install on Ubuntu with:

apt-get update && \
apt-get -y install software-properties-common && \
apt-get -y install g++ make wget cmake && \
add-apt-repository ppa:cleishm/neo4j && apt-get update && apt-get -y install libssl-dev neo4j-client libneo4j-client-dev && \
apt-get -y install qt5-default qtlocation5-dev libqt5location5-plugins

For the build step:

cmake -DCMAKE_BUILD_TYPE=RELEASE ./ && make

The RELEASE binalires should be in:

  • Server/bin/RELEASE/FastTrainServer
  • Client/bin/RELEASE/FastTrainClient

Before running the server we should setup the database first.

The database is available with docker. If you don't have docker installed then to install docker use:

curl -sSL get.docker.com | sudo sh

You may need to login and logout for the changes to take effect.

To run the database use:

docker run -d -p 127.0.0.1:7474:7474 -p 127.0.0.1:7687:7687 --name train_db quay.io/valiro21/fasttraindatabase

To run the server, from the root directory, use:

./Server/bin/RELEASE/FastTrainServer

After running the server, to run the client, from the root directory, use:

./Client/bin/RELEASE/FastTrainClient
Variant 2 - Docker

Download the latest docker-compose from the github repo master branch valiro21/FastTrainService.

In the folder where you downloaded the above file use:

docker-compose up -d

Versioning

We use git as versioning system and GitHub for releases, if any.

Thanks for reading! Enjoy

Tag summary

Content type

Image

Digest

Size

323.9 MB

Last updated

over 9 years ago

docker pull valiro21/fasttrainservice