Update README.md

This commit is contained in:
Stephan 2018-06-20 18:24:10 +02:00 committed by GitHub
parent a6e21e5eb4
commit 7306055d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -24,7 +24,7 @@ The requirements are:
- Python 3.5 or higher.
- PostgreSQL 9.6 or higher.
Install Devicehub with *pip*: `pip3 install ereuse-devicehub`.
Install Devicehub with *pip*: `pip3 install ereuse-devicehub -U --pre`.
## Running
To use it create a python file with the following and call it `app.py`:
@ -38,11 +38,14 @@ class MyConfig(DevicehubConfig):
app = Devicehub(MyConfig())
```
Crate a PostgreSQL database:
Create a PostgreSQL database:
```bash
$ createdb dh-db1
$ sudo -u postgres -i
postgres$ createdb dh-db1
```
And then execute, in the same directory where `app.py` is:
```bash
$ flask run