尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
Open-source LeetCode-style practice for Salesforce developers: Apex, SOQL, LWC, Flow and debugging problems graded in your own org, plus certification prep.
翻译准备中
正在加载完整 README。
查看完整 README ↗Open-source, LeetCode-style practice for Salesforce developers and admins. Write Apex, SOQL, Flows and Lightning Web Components, graded by hidden tests in your own connected org. Follow a roadmap from your first org to certification, and compete in weekly contests.
Live at https://sf.bighnesh.space
| Apex Challenge Arena | Triggers, classes, Batch and async Apex, graded by a check-only deploy (nothing stays in your org) |
| SOQL Practice | One query per problem, checked row by row against the expected answer |
| Debugging Arena | Start from broken Apex: governor limits, recursion, nulls, off-by-ones |
| Apex Playground | Run anonymous Apex in your org and read the debug log |
| Flows | Build record-triggered and autolaunched flows in your org's Flow Builder; hidden Apex tests grade them |
| LWC | Build components in the browser; compiled on the server, tested in a sandboxed iframe |
| Certification Prep | Original questions with explanations for Administrator, Platform App Builder, PD I, PD II and JavaScript Developer I, timed mock exams weighted like the real ones, and a readiness meter |
| Roadmaps | Developer and Admin paths: a one-time welcome quiz places you, steps link real problems, lessons and quizzes, and a weekly plan fits your time |
| Daily Challenge | One problem a day for everyone, with bonus coins and a streak |
| Contests | Timed rounds with live standings; the top three win coins |
| Community | Profiles with streaks, achievements and a skill radar, a leaderboard, a blog, and a coin store for cosmetics |
Contributions are welcome, especially new problems, certification questions and roadmap steps, which need no Salesforce or Clerk account to write and test.
npx npm@11 install
npm run dev # http://localhost:8100, runs in "local mode" with no keys
client/ Next.js 16 (App Router), Tailwind 4, shadcn/base-ui, Monaco :8100
server/ Express 5, zod, Drizzle + Postgres, pino :4100
The browser only talks to the site; Next proxies /backend/* to the API.
Grading. A submission is deployed to the learner's org together with a
hidden test class as a check-only Metadata API deploy (RunSpecifiedTests).
Salesforce compiles everything, runs the tests and rolls back. The verdict comes
from Salesforce's own report. SOQL problems wrap the query, escaped, in a
generated class and compare its rows with a reference query's rows on records
the test creates.
Org connection. OAuth 2.0 web-server flow with PKCE. The verifier is kept
server-side (single-use, 10-minute expiry) and state is HMAC-signed. Tokens are
stored AES-256-GCM encrypted and never reach the browser. Login and instance
hosts are restricted to Salesforce domains, and outbound requests refuse
redirects.
Needed only to run or grade Apex. In an org you administer (a Developer Edition is fine): Setup → External Client App Manager → New External Client App.
<APP_URL>/backend/api/v1/salesforce/oauth/callback
(e.g. http://localhost:8100/backend/api/v1/salesforce/oauth/callback).api) and Perform requests at any
time (refresh_token, offline_access).server/.env as SF_CLIENT_ID and
SF_CLIENT_SECRET. Generate TOKEN_ENCRYPTION_KEY and OAUTH_STATE_SECRET
with openssl rand -hex 32.Learners whose org blocks the shared app can use their own: Settings → Salesforce org → Use my own Connected App takes their Consumer Key and Secret (stored encrypted, used only for their connection).