Go to https://snake-api.izzatfaris.site/
- Typescript
- Deployed on Cloudflare Worker
- Hono as the routing library
- Install dependencies with
npm install
- Run development server with
npm run dev
- Go to http//localhost:8080 to access the API
src/index.ts
is the server. It contains the endpoints for our game.- Everything inside
src/lib
folder is used by the server. So peruse as needed when reading the server code.