|
1 | | -### PyRuc is the service for maintaining user accounts (UAC) |
| 1 | +### PyRuc (Python Redis Users Controller) |
| 2 | +PyRuc is the service for maintaining new and existing users accounts |
| 3 | + |
2 | 4 | [](https://coveralls.io/github/stanislav-web/PyRuc?branch=master) [](https://www.codacy.com/app/stanisov/PyRuc?utm_source=github.com&utm_medium=referral&utm_content=stanislav-web/PyRuc&utm_campaign=Badge_Grade) [](https://github.com/stanislav-web/PyRuc/blob/master/LICENSE) |
3 | 5 |
|
4 | 6 | | Python | Status | |
|
20 | 22 | - Gevent as default async worker for Gunicorn |
21 | 23 | - Python flask |
22 | 24 | - Twilio SMS notifier |
23 | | -- ELK client for as log transport |
| 25 | +- Logstash client as logs filter to Elastic |
24 | 26 | - JWT authentication |
25 | 27 | - Redis as persistent user's storage |
26 | 28 |
|
| 29 | +##### Configuration |
| 30 | +```bash |
| 31 | +/app/env/development.env |
| 32 | +/app/env/production.env |
| 33 | +``` |
| 34 | +You also could setup your build out of the docker container. |
| 35 | +Please install `dotenv` pip package for realize your custom environments |
| 36 | + |
27 | 37 | ##### Installation |
28 | 38 | - Docker |
29 | 39 | ```bash |
30 | 40 |
|
31 | 41 | # ENV development: using /app/env/development.env |
32 | | -docker-compose --file docker-compose.dev.yml up --build |
| 42 | +> docker-compose --file docker-compose.dev.yml up --build |
33 | 43 |
|
34 | 44 | # ENV production: using /app/env/production.env |
35 | | -docker-compose --file docker-compose.prod.yml up --build |
36 | | - |
| 45 | +> docker-compose --file docker-compose.prod.yml up --build |
37 | 46 | ``` |
38 | 47 | - Manualy & Run |
39 | 48 | ```bash |
40 | | -pip install -r requirements.txt |
41 | | -gunicorn -c config.py server --reload |
| 49 | +> cd app |
| 50 | +> pip install -r requirements.txt |
| 51 | +> gunicorn -c config.py server --reload |
42 | 52 | ``` |
| 53 | + |
43 | 54 | ##### Try API |
44 | 55 | [http://drunk-start.surge.sh](http://drunk-start.surge.sh) |
45 | 56 |
|
46 | | - |
47 | 57 | ##### Diagrams |
48 | 58 |  |
49 | 59 |  |
50 | 60 |  |
51 | 61 |
|
52 | 62 | #### Tests |
53 | 63 | ```bash |
54 | | -cd app && coverage run setup.py test |
55 | | -``` |
| 64 | +> cd app && coverage run setup.py test |
| 65 | +``` |
0 commit comments