This is a complete rewrite of the old FlyFF guild siege parser, which was hosted on Vercel with Nextjs.
- CloudFlare - host (requires wrangler).
- Rust - api
- SolidJS - client side
API
-
Run
wrangler d1 migrations apply siegelogs --local
to init db and shit. -
Start the dev server with
wrangler dev
. -
Run
wrangler deploy
to deploy API to CF.TODO:
-
POST /api/v1/servers
- Adds a new server (json payload should haveid(str, optional)
,name(str)
, andprivate(bool, optional)
fields) -
POST /api/v1/logs
- Creates a new log entry (form-data should have afile
andserver(str)
fields) -
GET /api/v1/servers
- Gets all the servers -
GET /api/v1/logs
- Gets all logs (can be filtered using aserver
query string i.e:?server=<name>
) -
GET /api/v1/logs/:server/:date
- Fetch a single log
-
-
Web App
TODO:
- Set up front-end with SolidJS
- Main page for recent logs
- New log form/page
- Log page