Santa Catarina fire brigade project to open data of occurrences.
- Git >= ?
- Python >= 3.5
- Pip >= ?
- Virtualenvwrapper >= ?
- PostgreSQL >= 9.5
sudo apt-get install python-pip
`sudo pip install --upgrade pip setuptools
- virtualenvwrapper
$ sudo pip install virtualenvwrapper
$ echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
$ echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
$ source ~/.bashrc
$ mkvirtualenv my-virtualenv -p /usr/bin/python3.x
$ workon my-virtualenv
(my-virtualenv) $ pip install -r requirements.txt
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib
$ sudo -i -u postgres
$ psql
$ # CREATE USER my_user WITH PASSWORD 'password';
$ # CREATE DATABASE e193;
You must have database dump available at the following link: https://drive.google.com/file/d/1eQOwdp6mGnczK6IYXLbnCkA6pq_hZEqF/view?usp=sharing
$ sudo psql e193 < e193-schema.dump -U meu_user -W
(meu-virtualenv)$ python app.py
(meu-virtualenv)$ python app.py &>> log.log&
(meu-virtualenv)$ tail -f log.log