A MÖK feladatbeküldő és feladatsor-összeállító rendszere.
A development version is automatically built and deployed from the main and is available at the following url:
https://feladatsor-dev.web.app/
A production version is automatically built and deployed from the main branch when a new version tag is created. It is available at the following url:
https://feladatsor.mokegyesulet.hu/
The DEV and PROD builds of the app connect to different corresponding backend environments.
The Talon workflow is intentionally not implemented in the frontend. It made the exercise-sheet composition process too complicated from both a UX and a technical perspective. The backend retains Talon data and API support for now, but the frontend does not query, display, or modify it. Talon-specific comments are intentionally unsupported in both layers.
- Install dependencies:
yarn - Run locally:
yarn dev. The application runs on http://localhost:5173/ by default.
- src
- components: reusable React components
- generated: don't touch this
- graphql: query and mutation definitions
- pages: React page components
- theme: MUI themes
- util
- functions: Firebase functions
Install prettier extension for VSCode. See .prettierrc for styling configuration.
Use the sandbox at https://api.febe.anton.areba.hu/graphql to write queries, then copy them into src/graphql/queries or src/graphql/mutations
Names of queries/mutaitons should start with select, insert, update or delete, then the entity name e.g. Exercise. If the query/mutation handles multiple entities, use plural form.
Examples:
- selectExercises
- insertComment
- selectUsersByRole
After writing graphql, generate hooks and types: yarn generate.
GitHub actions are set to deploy automatically when main brach updates or a PR is opened.