Compare commits
3 Commits
5e8981953f
...
10290dba54
| Author | SHA1 | Date | |
|---|---|---|---|
| 10290dba54 | |||
| 11fb366423 | |||
| 818617ddd4 |
4
README.md
Normal file
4
README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# FairHopper SDK for Python and JavaScript
|
||||
|
||||
- [Python](python/README.md)
|
||||
- [JavaScript](javascript/README.md)
|
||||
21
javascript/README.md
Normal file
21
javascript/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# FairHopper JavaScript SDK
|
||||
|
||||
Requirements:
|
||||
- Node 1.16+
|
||||
|
||||
## Running demo
|
||||
|
||||
Check `demo.js` for usage example.
|
||||
|
||||
Edit `demo.js` and configure FairHopper Game host settings:
|
||||
|
||||
```javascript
|
||||
const FAIRHOPPER_HOST = "http://127.0.0.1";
|
||||
const FAIRHOPPER_PORT = 8010;
|
||||
```
|
||||
|
||||
Run example using node:
|
||||
|
||||
```sh
|
||||
node demo.js
|
||||
```
|
||||
36
python/README.md
Normal file
36
python/README.md
Normal file
@ -0,0 +1,36 @@
|
||||
# FairHopper Python SDK
|
||||
|
||||
Requirements:
|
||||
- Python 3.10+
|
||||
|
||||
## Setting up environment
|
||||
|
||||
Project uses [Poetry](https://python-poetry.org), ultimate dependency management software for Python.
|
||||
|
||||
Install Poetry:
|
||||
```sh
|
||||
pip install poetry
|
||||
```
|
||||
|
||||
Install virtual environment:
|
||||
```sh
|
||||
poetry install
|
||||
```
|
||||
|
||||
## Running demo
|
||||
|
||||
Check `demo.py` for usage example.
|
||||
|
||||
Edit `demo.py` and configure FairHopper Game host settings:
|
||||
|
||||
```python
|
||||
FAIRHOPPER_HOST = "http://127.0.0.1"
|
||||
FAIRHOPPER_PORT = 8010
|
||||
```
|
||||
|
||||
Activate environment and run example:
|
||||
|
||||
```sh
|
||||
poetry shell
|
||||
python demo.py
|
||||
```
|
||||
Reference in New Issue
Block a user