Get the odds from the Hong Kong Jockey Club website.
Store the odds in a database. SurrealDB is used for the database.
Frontend is built on qwik. Backend is built on Nestjs.
check /api
bash
surreal start --log info --user root --pass pass
cd backend && nest start
cd frontend && npm run dev
npm install pm2 -gor
pnpm install pm2 -gpm2 start surreal -- start --log info --user root --pass pass
cd backend && pm2 start --name backend nest -- start
cd frontend && pm2 start npm -- run devpm2 delete allstop only
- pm2 stop all
npm installor
pnpm installSurrealDB:
curl -sSf https://install.surrealdb.com | shdocker run --rm -p 8000:8000 surrealdb/surrealdb:latest start
start server : surreal start --log info --user root --pass pass [path]
[path] default to be memory, can be set to a subdirectory, for example "file://hkjc"
connection: surreal sql --conn http://localhost:8000 --user root --pass pass --ns hkjc --db wpodds
export : surreal export --conn http://localhost:8000 --user root --pass pass --ns hkjc --db wpodds export.sql
Monitor Sudden Odds Changes
node notification.jsarg: --lang [eng|chi] default eng
node main.js- WP odd crashes and stop updating on some shells
-
Frontend: useWatch and refresh odd feed
-
Data Structure Optimization
-
Auto betting integration
-
Logger
