Skip to content

eguiwow/BIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike Intelligence Centre [BIC] 🚲

Project

Bike Intelligence Centre repository by Ander Eguiluz Castañeira

How to use it

BIC is accessible via bizkaiabikeintelligence.deustotech.eu/datacentre but if you want to run your own BIC platform follow these instructions:

Prerequisites

  • Django >= 2.0
  • UNIX-like OS
  • Virtualenvwrapper

Installation of the PostgreSQL/PostGIS database

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

Configuration of the PostgreSQL/PostGIS database

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

BIC dependencies

Install required BIC dependencies with requirements.txt file

pip install -r requirements.txt
pip install psycopg2-binary==2.8.6

Usage

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

About

Bike Intelligence Centre repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published