From 9e76d6ccd2f1d980aa1918bcc1620a643ab94ec9 Mon Sep 17 00:00:00 2001 From: Alberto Vara Date: Fri, 18 Jan 2019 20:21:11 +0100 Subject: [PATCH 1/2] Updated with pyms 1.0.0 --- project/__init__.py | 2 +- requirements.txt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/project/__init__.py b/project/__init__.py index 3003f42..4d1fe23 100644 --- a/project/__init__.py +++ b/project/__init__.py @@ -1,3 +1,3 @@ __author__ = "Alberto Vara" __email__ = "a.vara.1986@gmail.com" -__version__ = "0.3.1" +__version__ = "1.0.0" diff --git a/requirements.txt b/requirements.txt index c1841f8..e61defe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ Flask-SQLAlchemy==2.3.2 SQLAlchemy==1.2.16 Flask-Script==2.0.6 -# py-ms==0.1.1 -git+https://github.com/python-microservices/pyms.git@master#egg=py-ms \ No newline at end of file +py-ms==1.0.0 \ No newline at end of file From 1b436163ae50b3ce773529c9b3174e519c563273 Mon Sep 17 00:00:00 2001 From: Alberto Vara Date: Fri, 18 Jan 2019 20:21:17 +0100 Subject: [PATCH 2/2] Updated docs --- README.md | 10 ++++++++++ docs/codeexample.rst | 1 + docs/quickstart.rst | 15 +++++++++++++++ docs/structure.rst | 3 ++- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d8b412..e643c1f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,16 @@ Barebones Python Microservices [![Python 3](https://pyup.io/repos/github/python-microservices/microservices-scaffold/python-3-shield.svg)](https://pyup.io/repos/github/python-microservices/microservices-scaffold/) +# How to run the scaffold + +```bash +python manage.py runserver + +``` + +Open in your browser http://localhost:5000/template/ui/ + +Read more info in the documentation page: https://microservices-scaffold.readthedocs.io/en/latest/ # Docker diff --git a/docs/codeexample.rst b/docs/codeexample.rst index 7737b16..7675cd5 100644 --- a/docs/codeexample.rst +++ b/docs/codeexample.rst @@ -1,3 +1,4 @@ Code Examples ============= +See simple examples in https://github.com/python-microservices/pyms/tree/master/examples \ No newline at end of file diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 187834f..1e568f1 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -1,7 +1,22 @@ Quickstart ========== +Scaffold +-------- + +Clone and start this scaffold + .. code-block:: bash git clone https://github.com/python-microservices/microservices-scaffold.git cd microservices-scaffold python manage.py runserver + + +Open in your browser http://localhost:8080/template/ui/ + +Template +-------- + +You can create your own project from template: + +https://github.com/python-microservices/microservices-template \ No newline at end of file diff --git a/docs/structure.rst b/docs/structure.rst index c6eaca1..90a4d91 100644 --- a/docs/structure.rst +++ b/docs/structure.rst @@ -8,6 +8,7 @@ You have a project with this structure: Dockerfile LICENSE manage.py + config.yml README.md requirements.txt requirements-tests.txt @@ -18,7 +19,6 @@ You have a project with this structure: tox.ini project ├ __init__.py - ├ config.py ├ models │ ├ __init__.py │ └ models.py @@ -48,6 +48,7 @@ You can set the host and the port with: python manage.py runserver -h 0.0.0.0 -p 8080 + Common Libraries ----------------