Skip to content

Commit 180af16

Browse files
committed
add readme and .env.example
1 parent 88b6c64 commit 180af16

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.local
22
.idea
3+
!.env.example
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
TODO
1+
## Installing on a local machine
2+
This project requires python 3.10. Deps are managed by [pip-tools](https://github.com/jazzband/pip-tools)
23

3-
1. поставить линтер
4-
2. pyproject.toml
5-
3. сделать проверку подписи в запросах от сентри
6-
4. загрузка .env
7-
5. посылать сообщения в БК через селери
4+
Install requirements:
5+
6+
```bash
7+
$ pip install --upgrade pip pip-tools
8+
$ pip-sync requirements.txt
9+
```
10+
11+
Run the server:
12+
13+
```bash
14+
$ cp src/.env.example src/.env # default environment variables
15+
$ uvicorn src.main:app
16+
```
17+
18+
Testing:
19+
```bash
20+
# run lint
21+
$ make lint
22+
23+
# run unit tests
24+
$ make test
25+
```

src/.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DEBUG=False
2+
3+
BASECAMP_ACCOUNT_ID=bc-acc-id
4+
BASECAMP_CHATBOT_KEY=bc-bot-key
5+
BASECAMP_PROJECT_ID=111
6+
BASECAMP_CHAT_ID=111

0 commit comments

Comments
 (0)