From 7306055d2867e71a7f6be0cd87b1df16008fbae0 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 20 Jun 2018 18:24:10 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11a61997..d69e4380 100644 --- a/README.md +++ b/README.md @@ -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,15 +38,18 @@ 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 ``` See the [Flask quickstart](http://flask.pocoo.org/docs/1.0/quickstart/) -for more info. \ No newline at end of file +for more info.