- Cài đặt Jupyter notebooks
- Cài đặt PostgreSQL và postgis
- Cài đặt Nodejs
- Cài đặt Python
Chạy các lệnh sau:
pip install psycopg2
pip install postgis
pip install shapely
pip install numbaTrong Bus_stop, chạy
npm installTrong view, chạy
npm install- Tạo database với extension postgis
- Mở file GetData.ipynb bằng Jupyter notebooks cấu hình lại các tham số
user, password, dbname - Run all
Mở file Bus_stop/index.js điều chỉnh lại các tham số trong client.
const client = new Client({
user:'postgres',
host:'localhost',
password:'',
database:'BusStopDatabase',
port:5432
});Mở file Bus_stop/demo.py điều chỉnh lại các tham số:
conn = psycopg2.connect(database="BusStopDatabase", user="postgres", password="", host="127.0.0.1", port="5432")Vào thư mục Bus_stop chạy:
npm run start:devVào thự mục view chạy:
npm start