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 --localto init db and shit. -
Start the dev server with
wrangler dev. -
Run
wrangler deployto 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 afileandserver(str)fields) -
GET /api/v1/servers- Gets all the servers -
GET /api/v1/logs- Gets all logs (can be filtered using aserverquery 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