## Gistified

#### Flask app where code snippets can be created with syntax highlight and language recognition.


### Dependencies

- Python 3.6.1
- PostgreSQL 9.6.5

### Setup

Run the following commands:

```
sudo apt-get update
sudo apt-get install postgresql libpq-dev

pyenv install 3.6.1
pyenv virtualenv 3.6.1 gistified
```

### Development

Run the following commands:

Setup db and install libs

```
pip install -r requirements.txt
/bin/bash ./config_db.sh
```

Apply migrations and run app

```
flask db upgrade
export FLASK_APP=run.py
FLASK_DEBUG=True flask run
```

### Tests

Tests are run with pytest and tox.

To execute either of them, run the following commands:

```
pytest
tox
```


## Gistified

#### Flask app where code snippets can be created with syntax highlight and language recognition.


### Dependencies

- Python 3.6.1
- PostgreSQL 9.6.5

### Setup

Run the following commands:

```
sudo apt-get update
sudo apt-get install postgresql libpq-dev

pyenv install 3.6.1
pyenv virtualenv 3.6.1 gistified
```

### Development

Run the following commands:

Setup db and install libs

```
pip install -r requirements.txt
/bin/bash ./config_db.sh
```

Apply migrations and run app

```
export FLASK_APP=run.py
flask db upgrade
FLASK_DEBUG=True flask run
```

### Tests

Tests are run with pytest and tox.

To execute either of them, run the following commands:

```
pytest
tox
```


Change order in which FLASK_APP was exported
Change order in which FLASK_APP was exported