{"id":39504334,"url":"https://github.com/rage/mooc.fi","last_synced_at":"2026-01-18T05:51:26.500Z","repository":{"id":37431309,"uuid":"183409872","full_name":"rage/mooc.fi","owner":"rage","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-18T01:47:26.000Z","size":140102,"stargazers_count":5,"open_issues_count":102,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-12-21T06:48:44.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mooc.fi","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-04-25T10:14:18.000Z","updated_at":"2025-12-18T01:47:29.000Z","dependencies_parsed_at":"2023-10-13T00:00:39.210Z","dependency_job_id":"d1d524cd-2e9b-4fd8-bfd7-1dc6ef15fcbb","html_url":"https://github.com/rage/mooc.fi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rage/mooc.fi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rage%2Fmooc.fi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rage%2Fmooc.fi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rage%2Fmooc.fi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rage%2Fmooc.fi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rage","download_url":"https://codeload.github.com/rage/mooc.fi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rage%2Fmooc.fi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-01-18T05:51:25.791Z","updated_at":"2026-01-18T05:51:26.489Z","avatar_url":"https://github.com/rage.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Development environment\n\n## Requirements\n\nCreate `.env` files for backend and frontend. See examples and ask your local boffin for details.\n\n## Development workflow\n\nCurrent `node` version is `18.16.0`.\n\nRun `npm ci` in the each of the root, backend and frontend directories to install dependencies.\n\nCreate separate shells for the database container, backend and frontend:\n\n```bash\ncd backend\ndocker-compose up\n```\n\n```bash\ncd frontend\nnpm run dev\n```\n\n```bash\ncd backend\nnpm run migrate\nnpm run dev\n```\n\nIf the database doesn't seem to do anything, ie. no messages after the initial ones after running `docker compose up` and the database queries are not getting through, run `docker compose down` and try again. You can always run the database container in detached mode (`-d`) but then you won't see the logs live.\n\nIf you have used a development database with an older version of PostgreSQL and you want to keep your data, you will need to migrate it to the new version. See [here](docs/database.md) for instructions.\n\nRun `npm run prettier` in the root directory before committing. The commit runs hooks to check this as well as some linters, type checks etc.\n\n\u003cdetails\u003e\n\u003csummary\u003eUsing pre-built \u003ccode\u003elibrdkafka\u003c/code\u003e to speed up backend development\u003c/summary\u003e\n\nBy default, `node-rdkafka` builds `librdkafka` from the source. This can take minutes on a bad day and can slow development down quite considerably, especially when you're working with different branches with different dependencies and need to run `npm ci` often. However, there's an option to use the version installed locally.\n\nDo this in some other directory than the project one:\n\n```bash\nwget https://github.com/edenhill/librdkafka/archive/v2.0.2.tar.gz  -O - | tar -xz\ncd librdkafka-2.0.2\n./configure --prefix=/usr\nmake \u0026\u0026 make install\n```\n\nYou may have to do some of that as root. Alternatively, you can install a prebuilt package - see [here](https://github.com/edenhill/librdkafka) for more information.\n\nSet the env `BUILD_LIBRDKAFKA=0` when doing `npm ci` or similar on the backend to skip the build.\n\n\u003c/details\u003e\n\n## More documentation\n\n- [Kafka](docs/kafka.md)\n- [GraphQL](docs/graphql.md)\n- [Database](docs/database.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frage%2Fmooc.fi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frage%2Fmooc.fi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frage%2Fmooc.fi/lists"}