mirror of
https://github.com/drazicmartin/killer-game-svelte.git
synced 2026-11-22 14:38:28 +00:00
Killer Game app with svelte
- CSS 69.4%
- Svelte 14.7%
- TypeScript 11.7%
- PLpgSQL 3.6%
- JavaScript 0.4%
- Other 0.2%
| backend/docker | ||
| frontend | ||
| LICENSE | ||
| README.md | ||
killer-game-svelte
Killer Game app with svelte
- Frontend: svelte & SvelteKit
- backend: supabase
Init repo
Frontend
cd frontend
cp .env.example .env
npm i
Backend
cd backend\docker
cp .env.example .env
-
Populate
frontend\.envwith corresponding values inbackend\docker\.env -
Copy content of
/backend/dump.txtand paste-it in SQL Editor of supabase.
Development
Front
cd frontend
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Back
# start
docker compose -f backend/docker/docker-compose.yml up -d
# then go to kong dashboard http://127.0.0.1:8000/
# user : supabase
# password : this_password_is_insecure_and_should_be_updated
# stop
docker compose -f backend/docker/docker-compose.yml stop
# restart
docker compose -f backend/docker/docker-compose.yml restart
Accessing the APIs
Each of the APIs are available through the the same API gateway:
- REST: http://:8000/rest/v1/
- Auth: http://:8000/auth/v1/
- Storage: http://:8000/storage/v1/
- Realtime: http://:8000/realtime/v1/
Usefull
- Export database schemas
- Enter docker Postgres console
pg_dump --username postgres --schema=public -s
WIL
- supabase:
- has a pretty bad documentation
- loggin/registrer system is not easy to implement
- join table does no work very well
- fetch/insert/update query are easy !
- svlete:
- is very fun and easy !
TODO
- Login / Register
- Init the game
- Shuffle Game State
- Game admin settings
- Start game
- End game
- Game player settings
- Change user name
- Change game password
- Quit game
- Kill logic
- Add score
- People must not have same mission has their target mission.
- Allow dead to follow the game state
- Power up
- change mission
- Ask AI advise on your mission
- Direct message system between killer and target