{"id":19591461,"url":"https://github.com/fachschaftmathphysinfo/cards","last_synced_at":"2025-04-23T04:52:57.588Z","repository":{"id":226230909,"uuid":"741968954","full_name":"FachschaftMathPhysInfo/cards","owner":"FachschaftMathPhysInfo","description":"Database for Anki Decks with reviewer functionality in the future","archived":false,"fork":false,"pushed_at":"2024-03-19T11:04:59.000Z","size":27889,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T04:52:51.966Z","etag":null,"topics":["anki","database","fachschaft","flutter","gqlgen","graphql","university"],"latest_commit_sha":null,"homepage":"https://stapel.mathphys.info","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FachschaftMathPhysInfo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-11T13:43:16.000Z","updated_at":"2024-09-28T22:40:41.000Z","dependencies_parsed_at":"2024-11-11T08:31:27.628Z","dependency_job_id":"96015878-1fd8-4b46-bc87-cd68adec3d08","html_url":"https://github.com/FachschaftMathPhysInfo/cards","commit_stats":null,"previous_names":["fachschaftmathphysinfo/cards"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FachschaftMathPhysInfo%2Fcards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FachschaftMathPhysInfo%2Fcards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FachschaftMathPhysInfo%2Fcards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FachschaftMathPhysInfo%2Fcards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FachschaftMathPhysInfo","download_url":"https://codeload.github.com/FachschaftMathPhysInfo/cards/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372946,"owners_count":21419722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anki","database","fachschaft","flutter","gqlgen","graphql","university"],"created_at":"2024-11-11T08:29:15.507Z","updated_at":"2025-04-23T04:52:57.573Z","avatar_url":"https://github.com/FachschaftMathPhysInfo.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cards\nDatabase for Anki Decks with reviewer functionality in the future\n\n## dev ([todos](https://github.com/FachschaftMathPhysInfo/cards/issues/1))\n1. `docker compose build`\n2. `docker compose up -d \u0026\u0026 docker compose logs -f` (frontend: `localhost:8081`, backend: `localhost:8080`)\n3. (debugging the frontend: in `frontend/` execute `flutter run -d web-server --dart-define=API_URL=\"localhost:8080\"`)\n\n### frontend\nThis app is build upon the framework [Flutter](https://flutter.dev/). \nAll frontend code is located inside the `frontend/lib/` folder and is structured in `modules` (big, outsourced parts of pages), `pages`, `utils` (helper functions) and `views` (reusable elements). All used constant values, as well as the queries and mutations to communicate to the backend can be found at `lib/constants.dart`.\n\n### backend\nThe API is a [GraphQL](https://graphql.org/) instance, which is generated by [gqlgen](https://gqlgen.com/) and located in `server/`. The important files to look at are `server/graph/schema.graphqls` and `server/graph/schema.resolvers.go`. Former contains the datastructure to store metadata of deckfiles in a [MongoDB](https://www.mongodb.com/) database. The latter holds all logic to handle queries and mutations, requested by the frontend.\nAll uploaded deckfiles are stored within `deckfiles/` and are automatically named by their sha256 hash like `\u003chash\u003e.\u003capkg/colpkg\u003e`.\nIn production, make sure to secure the login route e.g. via reverse proxy in front of GraphQL. The backend awaits the header `X-Username` and puts the given string inside the jwt-token.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffachschaftmathphysinfo%2Fcards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffachschaftmathphysinfo%2Fcards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffachschaftmathphysinfo%2Fcards/lists"}