|
|
2 долоо хоног өмнө | |
|---|---|---|
| cache | 2 долоо хоног өмнө | |
| prunplanner | 3 сар өмнө | |
| punoted | 4 долоо хоног өмнө | |
| ts | 2 долоо хоног өмнө | |
| www | 2 долоо хоног өмнө | |
| .gitignore | 2 долоо хоног өмнө | |
| bun.lock | 2 сар өмнө | |
| buy.py | 1 сар өмнө | |
| cache.py | 2 долоо хоног өмнө | |
| company.py | 1 сар өмнө | |
| config.py | 2 долоо хоног өмнө | |
| cx_spend.py | 4 сар өмнө | |
| dev.sh | 2 долоо хоног өмнө | |
| export_logistics.py | 2 сар өмнө | |
| fx.py | 3 сар өмнө | |
| integration.py | 3 сар өмнө | |
| market.py | 2 долоо хоног өмнө | |
| mat_competitors.py | 1 сар өмнө | |
| movers.py | 3 сар өмнө | |
| package.json | 2 долоо хоног өмнө | |
| planet_bases.py | 3 долоо хоног өмнө | |
| pyproject.toml | 2 долоо хоног өмнө | |
| readme.md | 2 долоо хоног өмнө | |
| roa.py | 5 сар өмнө | |
| roi.py | 2 долоо хоног өмнө | |
| sell.py | 1 сар өмнө | |
| sell_liquidity.py | 1 сар өмнө | |
| shipbuilding.py | 2 сар өмнө | |
| supply.py | 1 сар өмнө | |
| tsconfig.json | 6 сар өмнө | |
| uv.lock | 2 долоо хоног өмнө |
install uv: https://docs.astral.sh/uv/getting-started/installation/
get a FIO API key from https://fio.fnar.net/settings and create a config.toml like:
username = 'raylu'
fio_api_key = 'uuid_here'
punoted_api_key = ''
[market.mm_items]
TCL = 0
[supply.promitor]
ignore_materials = ['RAT']
uv run supply.py promitor
To work on the frontend (ts/ directory) and test your changes locally, you will need to install Bun (the project's JavaScript runtime and bundler) in addition to uv.
install bun: https://bun.sh/docs/installation
To generate the backend data, compile the frontend, and serve the site locally, execute the following commands from your terminal:
Generate the Backend Data:
Use uv to execute the Python script in its isolated environment (this utilizes cbor2 for efficient API caching).
uv run roi.py
Install Frontend Dependencies:
Populate the node_modules directory with the required JavaScript libraries.
bun install
Build the Frontend:
Compile the TypeScript files into browser-ready JavaScript within the www/ directory.
bun run build
Serve Locally:
Navigate into the web directory and spin up a local development server to view your changes at http://localhost:8000.
cd www python3 -m http.server 8000