|
@@ -0,0 +1,39 @@
|
|
1
|
+# Messenger 1 Million
|
|
2
|
+
|
|
3
|
+## Dev environment setup
|
|
4
|
+
|
|
5
|
+### 1. Install poetry
|
|
6
|
+
|
|
7
|
+```bash
|
|
8
|
+curl -sSL https://install.python-poetry.org | python3 -
|
|
9
|
+```
|
|
10
|
+Optionally configure poetry to create virtual envs in project root directories
|
|
11
|
+```bash
|
|
12
|
+poetry config virtualenvs.in-project true
|
|
13
|
+```
|
|
14
|
+
|
|
15
|
+### 2. Setup a poetry virtual env
|
|
16
|
+```bash
|
|
17
|
+poetry shell
|
|
18
|
+```
|
|
19
|
+
|
|
20
|
+### 3. Install dependencies
|
|
21
|
+```bash
|
|
22
|
+poetry install
|
|
23
|
+```
|
|
24
|
+
|
|
25
|
+## Run scripts
|
|
26
|
+
|
|
27
|
+```bash
|
|
28
|
+python -m scripts.[script name]
|
|
29
|
+```
|
|
30
|
+
|
|
31
|
+### Examples :
|
|
32
|
+
|
|
33
|
+```bash
|
|
34
|
+python -m scripts.find_holes
|
|
35
|
+```
|
|
36
|
+
|
|
37
|
+```bash
|
|
38
|
+python -m scripts.read_top
|
|
39
|
+```
|