freeCodeCamp/tools/daily-challenges
Tom 79eea990ea
Some checks failed
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
i18n - Upload Client UI / Client (push) Has been cancelled
i18n - Upload Curriculum / Learn (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, dev) (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, org) (push) Has been cancelled
feat(curriculum): daily challenges 223-229 (#66313)
2026-03-11 10:12:51 +01:00
..
.lintstagedrc.mjs refactor: one eslint task per workspace (#63835) 2025-11-21 19:21:46 +05:30
eslint.config.js refactor: one eslint task per workspace (#63835) 2025-11-21 19:21:46 +05:30
helpers.ts fix(tools): update daily challenge seed for Gatsby 5 (#65933) 2026-02-18 19:05:47 +05:30
package.json chore: use turborepo for type checking (#64455) 2026-01-19 19:05:27 +05:30
README.md feat: add daily challenge seed script (#60506) 2025-06-18 20:29:49 +02:00
sample.env feat: add daily challenge seed script (#60506) 2025-06-18 20:29:49 +02:00
seed-daily-challenges.ts feat(curriculum): daily challenges 223-229 (#66313) 2026-03-11 10:12:51 +01:00
tsconfig.json refactor: one eslint task per workspace (#63835) 2025-11-21 19:21:46 +05:30
types.ts refactor: simplify sourcing of challenge nodes into gatsby (#63697) 2025-11-11 09:34:24 +01:00

Script to seed the daily challenges. Used to seed challenges for local or production databases.

To run:

Copy the sample.env to .env, Make sure dependencies are installed, Run the main client with upcoming changes shown - this is so the script can get the challenges from GraphQL, cd tools/daily-challenges to go into the daily-challenges folder, Run pnpm seed-daily-challenges to seed the challenges from the "Dev Playground" superblock to a DailyCodingChallenges collection in the freecodecamp database.