telegram-archivist/README.md

27 lines
542 B
Markdown
Raw Permalink Normal View History

2018-05-03 17:58:56 +00:00
# telegram-archivist
## Development (Quickstart)
* Install dependencies:
2018-05-03 20:11:49 +00:00
```bash
2018-05-03 17:58:56 +00:00
$ sudo apt-get install python3 python3-pip virtualenv python3-virtualenv
```
2018-05-03 20:11:49 +00:00
2018-05-03 17:58:56 +00:00
* Setup the virtual environment with python3
2018-05-03 20:11:49 +00:00
```bash
2018-05-03 17:58:56 +00:00
$ virtualenv -p python3 env
```
2018-05-03 20:11:49 +00:00
2018-05-03 17:58:56 +00:00
* Activate the environment, install dependencies, perform DB migration
2018-05-03 20:11:49 +00:00
```bash
2018-05-03 17:58:56 +00:00
$ . env/bin/activate
(env) $ pip install -r requirements.txt
(env) $ python manage.py migrate
(env) $ python manage.py runserver
```
If you get a no such table error, try: `python manage.py migrate --run-syncdb`