Killer Game app with svelte
  • CSS 69.4%
  • Svelte 14.7%
  • TypeScript 11.7%
  • PLpgSQL 3.6%
  • JavaScript 0.4%
  • Other 0.2%
Find a file
2023-12-26 14:53:46 +01:00
backend/docker feat: update data schema 2023-10-01 20:50:42 +02:00
frontend fix: login page css 2023-10-03 16:17:32 +02:00
LICENSE Initial commit 2023-08-20 17:05:18 +02:00
README.md Merge branch 'main' of https://github.com/drazicmartin/killer-game-svelte 2023-12-26 14:53:46 +01:00

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\.env with corresponding values in backend\docker\.env

  • Copy content of /backend/dump.txt and 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

Contributors