Skip to content

Commit ec6ab0b

Browse files
authored
Merge pull request #59 from Summoner-Network/dev
added tests section
2 parents 39767da + 8bb3295 commit ec6ab0b

File tree

1 file changed

+35
-22
lines changed

1 file changed

+35
-22
lines changed

README.md

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
99
This core SDK exposes the **hooks**, **communication layer**, and **execution model** needed to support decentralized identities, reputation-aware messaging, programmable automations, and orchestration.
1010

11-
## 📚 Documentation
11+
## Documentation
1212

1313
The core codebase is thoroughly documented in our **official documentation**, available on our GitHub page [here](https://github.com/Summoner-Network/summoner-docs).
1414

15-
## 🛠️ Installation
15+
## Installation
1616

1717
Before running the platform, ensure that both **Python** and **Rust** are installed on your system. The `setup.sh` script will then take care of configuring the environment and compiling necessary components.
1818

@@ -83,27 +83,9 @@ This script performs the following actions:
8383
- Installs required **Python packages** listed in `requirements.txt`
8484
- Generates a default **`.env`** file with configuration placeholders
8585
- Installs all available **Rust server implementations**, using `Cargo.lock` to ensure consistent builds
86-
- **[NEW]** Installs the `summoner` folder as a **Python package** in editable mode, enabling clean imports like `from summoner.server import *` without modifying `PYTHONPATH`
86+
- Installs the `summoner` folder as a **Python package** in editable mode, enabling clean imports like `from summoner.server import *` without modifying `PYTHONPATH`
8787

8888

89-
#### What This Means for Imports
90-
91-
With `summoner` installed as an editable pip package, you can write imports like:
92-
93-
```python
94-
from summoner.server import SummonerServer
95-
```
96-
97-
... without modifying your `PYTHONPATH`.
98-
99-
Previously, without a proper package installation, you needed boilerplate like:
100-
101-
```python
102-
target_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
103-
if target_path not in sys.path:
104-
sys.path.insert(0, target_path)
105-
```
106-
10789
### 4. Configure Environment Variables
10890

10991
The `.env` file defines key runtime parameters such as logging and database connection. You may need to adjust it to match your local setup:
@@ -125,7 +107,38 @@ SECRET_KEY = os.getenv("SECRET_KEY", "devsecret")
125107
At this point, your development environment should be fully configured and ready to use. You can now launch a server or run clients to explore and test the code.
126108

127109

128-
## 🤝 Contributions
110+
## Quick smoke tests
111+
112+
Use the ready-made scripts `open_server.sh` and `open_client.sh` in the repo root to verify your install.
113+
114+
**POSIX (macOS/Linux)**
115+
116+
```bash
117+
# terminal A
118+
source venv/bin/activate
119+
bash open_server.sh
120+
121+
# terminal B
122+
source venv/bin/activate
123+
bash open_client.sh
124+
```
125+
126+
**Windows**
127+
Use **Git Bash** (or WSL). Activate the venv then run the scripts with Bash:
128+
129+
```bash
130+
source venv/Scripts/activate
131+
bash ./open_server.sh # terminal A
132+
bash ./open_client.sh # terminal B
133+
```
134+
135+
If needed: `chmod +x open_server.sh open_client.sh`.
136+
137+
**Expected**
138+
Server starts and listens and client connects and can send messages through a chat interactive window. If anything fails, re-run `source setup.sh` and try again.
139+
140+
141+
## Contributions
129142

130143
This repository is open source for visibility and usage. External developers are welcome to [open issues](../../issues) to report bugs, suggest improvements, or request new features.
131144

0 commit comments

Comments
 (0)