You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/command_line.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Commnand line
2
2
3
-
PyMS has some command to make easy your developments:
3
+
PyMS comes with some commands to make your developments easier:
4
4
5
5
```bash
6
6
pyms -h
7
7
```
8
-
Show you a list of options and help instructions to use this command like:
8
+
Lists the options and help instructions to use this command:
9
9
10
10
```bash
11
11
usage: main.py [-h] [-v VERBOSE]
@@ -37,11 +37,11 @@ Command:
37
37
pyms startproject
38
38
```
39
39
40
-
This command create a project template like [Microservices Scaffold](https://github.com/python-microservices/microservices-scaffold).
41
-
This command use[cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
40
+
This command creates a project template like the one defined in[Microservices Scaffold](https://github.com/python-microservices/microservices-scaffold).
41
+
This command uses[cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
42
42
43
43
!!! warning
44
-
You must run first`pip install cookiecutter==1.7.0`
44
+
First, you must run `pip install cookiecutter==1.7.0`
Copy file name to clipboardExpand all lines: docs/quickstart.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This page gives a good introduction to PyMS. It assumes you already have PyMS installed. If you do not, head over to the [Installation](installation.md) section.
4
4
5
-
You need to create 2 files: main.py and config.yml:
5
+
To start out, you need to create 2 files: main.py and config.yml:
6
6
7
7
main.py
8
8
```python
@@ -38,20 +38,20 @@ pyms:
38
38
39
39
## So what did that code do?
40
40
41
-
1. Create a instance of PyMS Microservice class (#1.1). This initialization inject the configuration defined in the
42
-
1.3 block and could be accessed through current_app.config. Then, initialize the service defined in the 1.2 block. See [Services](services.md) for more details.
41
+
1. Create a instance of PyMS Microservice class (#1.1). This initialization injects the configuration defined in the
42
+
1.3 block, so it could be accessed through current_app.config. Then, it initializes the service defined in the 1.2 block. See [Services](services.md) for more details.
if it was defined in the pyms configuration block, create a tracer, add health-check blueprint, initialize libs and set the PyMS Microservice in
45
-
`ms` attribute and you can access to it with `current_app.ms`. This steps has their each functions and you can easy override it.
46
-
3. `create_app` return the flask instance and you can interact with it as a typical flask app
45
+
`ms` attribute and you can access to it with `current_app.ms`. These steps all have their own functions and you can easy override any of them.
46
+
3. `create_app` returns the flask instance and you can interact with it as a typical flask app
47
47
48
48
# Create a project from scaffold
49
49
50
50
PyMS has a command line option to create a project template like [Microservices Scaffold](https://github.com/python-microservices/microservices-scaffold).
51
-
This command use [cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
51
+
This command uses [cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
52
52
53
53
!!! warning
54
-
You must run first `pip install cookiecutter==1.7.0`
54
+
First, you must run `pip install cookiecutter==1.7.0`
0 commit comments