Following the modus operandi of other games, it was decided that eckchen needed a new admin interface where people could easily update information regarding the games. The project is managed by the team Engagement and Games.
Since we started with eckchen
, you will see many pieces of code that have to do with that game, like the schemas
for zod or the elements in the ui, like the ones you will find in GameTable.svelte
.
Here you will see a list of the files that you will surely need to edit:
src
โโโ lib
โ โโโ error-messages.ts // the error messages for the form validation
โ โโโ queries.ts // all the queries that will be used with the postqres
โโโ components
โ โโโ GameTable.svelte // the main component used for Create and Edit
โ โโโ Header.svelte // you will need to replace the EckchenLogo.svelte
โ โโโ ... // other components probably will need some change
โโโ schemas
โ โโโ generate-game.ts // define all the schemas for the forms (validation, types, etc.)
โโโ app.html // change the name of the game
nvm use
to install the latest lts versionnpm i --force
to install the required packages. As soon as Svelte 5 will become stable, we will not need --force.npm run dev
to start the dev serverYou can run some tests by using the following commands:
npm run test:unit
to run all the unit tests.Check the main task on Jira for further information.
stretch: