Bike Intelligence Centre repository by Ander Eguiluz Castañeira
BIC is accessible via bizkaiabikeintelligence.deustotech.eu/datacentre but if you want to run your own BIC platform follow these instructions:
- Django >= 2.0
- UNIX-like OS
- Virtualenvwrapper
We add the ubuntugis ppa and download Postgres & PostGIS from it
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install postgis
Create a database and give it a password
Enable your database with PostGIS by connecting to your database and typing:
your_db=# CREATE EXTENSION postgis;
In your settings.py
file set your database user and password
Install required BIC dependencies with requirements.txt file
pip install -r requirements.txt
pip install psycopg2-binary==2.8.6
Access your project's path and run migrations
python manage.py makemigrations
python manage.py migrate
Then run the web server process
python manage.py runserver
You can access BIC via your browser: http://localhost:8000/datacentre