Set up dev environment + fix corrupted math-algebra B1 seed#2
Draft
EnglandTong wants to merge 2 commits into
Draft
Set up dev environment + fix corrupted math-algebra B1 seed#2EnglandTong wants to merge 2 commits into
EnglandTong wants to merge 2 commits into
Conversation
The file had a truncated partial duplicate of questions 001-019 spliced in before the complete 25-question array, breaking a string literal with a raw control character. This made JSON.parse fail in loadModules(), which runs at API startup and in the db:seed scripts, preventing the API from booting. Restored the file to the intended valid 25-question array. Co-authored-by: EnglandTong <EnglandTong@users.noreply.github.com>
Co-authored-by: EnglandTong <EnglandTong@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up the EduCore development environment for Cursor Cloud agents and fixes a blocking data-corruption bug discovered during setup.
fix(modules):modules/math-algebra/seeds/B1.jsoncontained a truncated partial duplicate of questions 001–019 spliced in before the complete 25-question array, breaking a string literal with a raw control character. This madeJSON.parsefail insideloadModules()— which runs at API startup and in thedb:seed*scripts — so the API could not boot at all. Restored the file to the intended valid 25-question array.docs: AddedAGENTS.mdwith a## Cursor Cloud specific instructionssection covering services (MongoDB/Redis), how to run the apps, and non-obvious gotchas.Environment
pnpm install).mongodbinary reused frommongodb-memory-server, installed to/usr/local/bin) and Redis (apt) run as local services; seeded demo accounts viadb:seed*.pnpm install(services + system binaries persist in the VM snapshot; AGENTS.md documents how to start them).Testing
pnpm lintpnpm test(after a clean build — see AGENTS.md*.tsbuildinfogotcha)pnpm buildGET /health→status: ok(mongodb connected, redis ready, 6 modules)/moduleseducore_register_student_dashboard.mp4
Student dashboard after successful registration
To show artifacts inline, enable in settings.