Skip to content

Commit d28325b

Browse files
committed
Updated docs
1 parent a5f3240 commit d28325b

File tree

5 files changed

+38
-7
lines changed

5 files changed

+38
-7
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# microservices-scaffold
2-
Barebones Python Microservices
2+
Python Microservice Scaffold is an example to how structure a Flask Microservice Project.
3+
This Scaffold is build over [PyMS](https://github.com/python-microservices/pyms) package. PyMS is a [Microservice chassis pattern](https://microservices.io/patterns/microservice-chassis.html)
4+
like Spring Boot (Java) or Gizmo (Golang). PyMS is a collection of libraries, best practices and recommended ways to build
5+
microservices with Python which handles cross-cutting concerns:
6+
- Externalized configuration
7+
- Logging
8+
- Health checks
9+
- Metrics (TODO)
10+
- Distributed tracing
311

412
[![Build Status](https://travis-ci.org/python-microservices/microservices-scaffold.svg?branch=master)](https://travis-ci.org/python-microservices/microservices-scaffold)
513
[![Coverage Status](https://coveralls.io/repos/github/python-microservices/microservices-scaffold/badge.svg?branch=master)](https://coveralls.io/github/python-microservices/microservices-scaffold?branch=master)
@@ -11,13 +19,16 @@ Barebones Python Microservices
1119
# How to run the scaffold
1220

1321
```bash
22+
virtualenv --python=python[3.6|3.7|3.8] venv
23+
source venv/bin/activate
24+
pip install -r requirements.txt
1425
python manage.py runserver
15-
1626
```
1727

1828
Open in your browser http://localhost:5000/template/ui/
1929

20-
Read more info in the documentation page: https://microservices-scaffold.readthedocs.io/en/latest/
30+
Read more info in the documentation page:
31+
https://microservices-scaffold.readthedocs.io/en/latest/
2132

2233
# Docker
2334

@@ -37,7 +48,7 @@ Push to Kubernetes:
3748

3849
## How to contrib
3950

40-
TODO
51+
See https://github.com/python-microservices/pyms/blob/master/CONTRIBUTING.md
4152

4253
### Update docs
4354

docs/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Configuration
22
=============
33

4-
Project configuration is loaded using py-ms library based on yml or json file.
5-
Some example files are config.yml, config-docker.yml and tests/config-tests.yml.
4+
Project configuration is loaded using py-ms package based on yml or json file.
5+
Some example files are config.yml, config-docker.yml and tests/config-tests.yml or see `PyMS configuration <https://py-ms.readthedocs.io/en/latest/configuration/>`_
66

77
Documentation
88
-------------

docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,20 @@
44
55
Python Microservices
66
====================
7+
Python Microservice Scaffold is an example to how structure a Flask Microservice Project.
8+
This Scaffold is build over `PyMS <https://github.com/python-microservices/pyms>`_ package. PyMS is a `Microservice chassis pattern <https://microservices.io/patterns/microservice-chassis.html>`_
9+
like Spring Boot (Java) or Gizmo (Golang). PyMS is a collection of libraries, best practices and recommended ways to build
10+
microservices with Python which handles cross-cutting concerns:
11+
- Externalized configuration
12+
- Logging
13+
- Health checks
14+
- Metrics (TODO)
15+
- Distributed tracing
16+
717

818
Stack
919
-----
20+
* `PyMS <https://github.com/python-microservices/pyms>`_
1021
* `connexion <http://connexion.readthedocs.io>`_
1122
* `Flask <https://github.com/pallets/flask>`_
1223
* `SQLAlchemy <https://www.sqlalchemy.org/>`_

docs/installation.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Clone the project
66
.. code-block:: bash
77
git clone https://github.com/python-microservices/microservices-scaffold.git
88
9+
.. code-block:: bash
10+
virtualenv --python=python[3.6|3.7|3.8] venv
11+
source venv/bin/activate
12+
pip install -r requirements.txt
13+
python manage.py runserver
14+
915
Configure your project and the path of your MS. See :doc:`configuration </configuration>` section.
1016

1117
Configure your setup.py with your project information

docs/quickstart.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ Clone and start this scaffold
99
.. code-block:: bash
1010
git clone https://github.com/python-microservices/microservices-scaffold.git
1111
cd microservices-scaffold
12-
python manage.py runserver
12+
virtualenv --python=python[3.6|3.7|3.8] venv
13+
source venv/bin/activate
14+
pip install -r requirements.txt
15+
python manage.py runserver
1316
1417
1518
Open in your browser http://localhost:8080/template/ui/

0 commit comments

Comments
 (0)