The repository contains the codes for the server side of the ITS Project. The Project has been made using Django Framework. It consists of the models, serializers, views and settings of the project.
The server side needs some dependencies to build the project. It is recommended to use virtualenv to install the dependencies. The installation guide is works for Ubuntu 16.04 at the time of writing.
First, clone this repository, with link provided here. It is assumed that the project user has installed all the required GIS modules using the Ubuntu PPA. Then, follow one of the following methods:
-
Installing dependencies using Virtualenv (recommended)
a. Install pip and virtualenv by issuing the following command:
sudo apt-get install python3-pip python3-dev python-virtualenv
.b. Create a virtualenv environment by issuing the following command:
virtualenv --system-site-packages -p python3 targetDirectory
where targetDirectory specifies the top of the virtualenv tree. Our instructions assume that targetDirectory is~/python3-its
, but you may choose any directory.c. Activate the virtualenv environment by issuing the following command:
source ~/python3-its/bin/activate
.
The preceding source command should change your prompt to the following:
(python3-its)$
d. Then, go to the downloaded repository itsprojectserver and run the following command:
pip install -r requirements.txt
.
It will install all the required dependencies in requirements.txt. -
Installing directly to the system
- Go to the downloaded repository itsprojectserver and run the following command:
pip3 install -r requirements.txt
.
It will install all the required dependencies in requirements.txt.
- Go to the downloaded repository itsprojectserver and run the following command:
Run the following command or add this to your .profile file.
export LIBRARY_PATH_ITS="/path/to/lib"
To run the server side of the project, just issue the following command in the itsprojectserver repository:
python3 manage.py runserver
.