For Java / Spring Boot and Node.js / TypeScript developers
Paste a job ad. Get the take-home they'll probably give you.
A runnable Spring Boot or Node project with failing tests, a 3-hour brief and the grading rubric, built from that exact posting. Practise it before the real one lands in your inbox.
Free, 3 a day, no card. Takes about a minute after a quick sign-up. Your ad isn't stored. Or download a sample ZIP with no account.
Files
README.md, RUBRIC.md, pom.xml, five Java classes in src/main/java (the TODO is in TradeImportService.java), application.properties, and the test classes TradeImportTest.java and TradeImportHardeningTest.java.
README.md (excerpt)
# Take-home practice: Trade file import & validation report — securities trading edition (Spring Boot 3, Java 21) > Practice assignment generated by HireCheck — not a real employer's assignment. Timebox: **3 hours**. Target level: **mid**. ## Where to work Look for `// TODO` in `TradeImportService.importCsv`. You may refactor anything, but keep the HTTP contract. ## Run `mvn verify` — the provided tests must pass. Your own tests are part of the grade.
Starter project, as downloaded55 tests, 55 errors
$ mvn verify [ERROR] Tests run: 51, Failures: 0, Errors: 51, Skipped: 0, Time elapsed: 4.633 s <<< FAILURE! -- in com.example.imports.TradeImportHardeningTest [ERROR] com.example.imports.TradeImportHardeningTest.acceptsCrLfLineEndings -- Time elapsed: 0.518 s <<< ERROR! ... [ERROR] Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.036 s <<< FAILURE! -- in com.example.imports.TradeImportTest [ERROR] com.example.imports.TradeImportTest.badHeaderIs400 -- Time elapsed: 0.007 s <<< ERROR! ... [ERROR] Tests run: 55, Failures: 0, Errors: 55, Skipped: 0 [INFO] BUILD FAILURE
Same tests, finished solutionBUILD SUCCESS
$ mvn verify [INFO] Tests run: 51, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.449 s -- in com.example.imports.TradeImportHardeningTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059 s -- in com.example.imports.TradeImportTest [INFO] Tests run: 55, Failures: 0, Errors: 0, Skipped: 0 [INFO] BUILD SUCCESS
Files
README.md, RUBRIC.md, package.json, package-lock.json, tsconfig files, seven TypeScript files in src (the TODOs are in signature.ts and processor.ts), and the Vitest suites webhooks.test.ts and webhooks.hardening.test.ts.
README.md (excerpt)
# Take-home practice: Idempotent payment webhook processor for a payments platform (Node.js 20, TypeScript, Express) > Practice assignment generated by HireCheck — not a real employer's assignment. Timebox: **3–4 hours**. Target level: **senior**. ## Where to work Look for `// TODO` in `src/signature.ts` and `src/processor.ts`. Keep the HTTP contract. ## Run Node.js 20+. `npm ci`, then `npm test` — the provided tests must pass.
Starter project, as downloaded27 tests, 27 failed
$ npm test > tsc --noEmit && vitest run FAIL test/webhooks.hardening.test.ts > Payment webhooks (hardening) > 20 concurrent deliveries of the same event: exactly one APPLIED, the rest DUPLICATE (no 500) FAIL test/webhooks.hardening.test.ts > Payment webhooks (hardening) > concurrent debits never overdraw: exactly as many succeed as the balance allows ... Test Files 2 failed (2) Tests 27 failed (27)
Same tests, finished solution27 passed
$ npm test > tsc --noEmit && vitest run Test Files 2 passed (2) Tests 27 passed (27)
mvn verify for Java, npm test for TypeScript). Per-test lines after the first failures are trimmed.How it works
Generating takes under a minute. The 3–4 hours after that are yours.
Paste the job ad
HireCheck picks out the language, stack and seniority: Spring, Express, JPA, JWT, Kafka, webhooks and so on.
Download the repo
A starter project that compiles, with TODOs and tests that go green when you're done.
Grade yourself
Score your work against a transparent 100-point rubric with junior, mid and senior bars, or upload your solution for an AI review against the same rubric.
Why not LeetCode?
Take-homes aren't algorithm puzzles.
A reviewer reads your validation, error handling, transactions, tests and how you structured the code. That's what you practice here.
From the sample brief
- Reject bad CSV rows with a 1-based line number and a reason:
COLUMNS,ISIN,SIDE,QUANTITY,PRICE,DATE,DUPLICATE. - Return
400 {"code":"BAD_FILE"}when the header is wrong. - Catch duplicate references, both within the file and already in the database.
- Stretch goal: explain in
NOTES.mdwhat an operator would see if the database fails halfway through a large file.
What you get
- Scenarios
- REST APIs
- JPA reporting
- Spring Security / JWT
- Webhooks & idempotency
- Streaming CSV
- Resilient integrations
- Event processing
- Batch imports
- PostgreSQL + Testcontainers
- Stack
- Spring Boot 3 · Java 21 · Maven · JUnit 5 or Node.js 20 · TypeScript · Express · Vitest
- In the ZIP
README.mdbrief,RUBRIC.md,pom.xmlorpackage.json, starter code with// TODOmarkers, and provided tests that fail until you finish.- Timebox
- 3–4 hours per brief, like the real thing.
- Checked
- Every reference solution passes
mvn verify/npm test, and the starter's tests fail until you do the work.
See a real example, no signup
Pick your stack. Both samples are the real download, the same kind of ZIP you get after signing up.
HireCheck generated this from a real Tallinn securities-processing job posting (company name removed). It is exactly what you download: the brief, the rubric and a starter project that compiles, with tests that fail until you implement it. No reference solution included.
Take-home practice: Trade file import & validation report — securities trading edition (Spring Boot 3, Java 21)
Practice assignment generated by HireCheck — not a real employer's assignment. Timebox: 3 hours. Target level: mid.
Context
Operations uploads daily trade files. Valid trades must be stored and every bad row explained so ops can fix it. You are joining a securities trading team; treat data correctness and clear error reporting as production concerns.
Requirements
POST /api/imports/trades (multipart file) → {imported, rejected:[{line, reason}]}.
CSV header reference,isin,side,quantity,price,tradeDate (else 400 {"code":"BAD_FILE"}). Line numbers are 1-based incl. header. Files may use LF or CRLF line endings.
Reasons: COLUMNS (≠6), ISIN (2 letters + 9 alnum + 1 digit), SIDE (BUY|SELL), QUANTITY (>0), PRICE (>0), DATE (ISO, not future), DUPLICATE (reference already in file or DB). Valid rows saved with all their fields.
Stretch goals (optional)
- Mention how you would apply this with batch.
Where to work
Look for // TODO in TradeImportService.importCsv. You may refactor anything, but keep the HTTP contract.
Run
mvn verify — the provided tests must pass. Your own tests are part of the grade.
Deliver
A git repo + NOTES.md: decisions, trade-offs, what you'd do with more time.
Show the grading rubric
Grading rubric — Trade file import & validation report (100 pts)
Reviewer emphasis for this mid securities trading role: correctness first, then java, spring boot, batch.
| Area | Pts |
|---|---|
| Correctness (provided tests) | 30 |
| Validation completeness & clear reasons | 15 |
| Streaming / memory for large files | 15 |
| Own tests (huge file, encoding, quotes) | 15 |
| Transaction strategy (all-or-nothing vs partial) justified | 10 |
| NOTES.md: Spring Batch, ISIN checksum, idempotent re-upload | 15 |
Levels: junior ≥60, mid ≥75, senior ≥85 and a strong NOTES.md.
This is a Node.js/TypeScript payment-webhooks practice assignment generated from a realistic payments-platform job posting. It is exactly what you download: the brief, the rubric and a starter project that compiles, with tests that fail until you implement it. No reference solution included.
Take-home practice: Idempotent payment webhook processor for a payments platform (Node.js 20, TypeScript, Express)
Practice assignment generated by HireCheck — not a real employer's assignment. Timebox: 3–4 hours. Target level: senior.
Context
You are joining the payments platform team, which receives signed settlement webhooks from card and wallet providers and keeps merchant balances correct. Providers retry on any non-2xx answer or timeout, and sometimes deliver the same event several times at once to different instances. A double-applied credit or debit means a wrong payout, and finance and support have to untangle it by hand. Downstream services learn about balance changes only through the outbox, so a balance update and its message must never be written separately.
Requirements
POST /webhooks/payments receives one event: {id, type, accountId, amountMinor, currency, occurredAt} (amountMinor in integer cents). Storage is the given Database in src/db.ts: async, optimistic transactions (writes are applied atomically at commit; commit fails with VersionConflictError if an account you read changed meanwhile, and with UniqueViolationError if the event id was recorded meanwhile). Treat it like PostgreSQL: several instances of the service share it, so in-process locks are not a solution.
Every error response is JSON {code, message}; the provided tests check the code. Any non-2xx makes the provider redeliver.
- Signature first: header
Webhook-Signature: t=<unix seconds>,v1=<hex>wherev1= HMAC-SHA256(secret,"<t>." + raw body). Verify over the exact raw bytes, in constant time, accept any matchingv1(several during secret rotation), and reject timestamps more than 300 s from the injected clock →401 INVALID_SIGNATURE. Then: body not JSON, not an object, oridnot a string of 1–100 chars →400 VALIDATION_FAILED; body over 64 kB →413. - Response
200with one of:{eventId, status: "APPLIED", balanceMinor},{eventId, status: "DEAD_LETTERED", reason},{eventId, status: "DUPLICATE", originalStatus}. - Idempotent by event id: an id that was applied or dead-lettered before is
DUPLICATEand changes nothing — also when deliveries of the same event run concurrently or hit different instances: exactly one isAPPLIED, all othersDUPLICATE, none fails. payment.creditedadds,payment.debitedsubtracts; the balance never goes negative (debiting exactly the balance is allowed). Dead-letter reasons, checked in this order:UNKNOWN_TYPE,INVALID_AMOUNT(not an integer 1–100000000000),UNKNOWN_ACCOUNT,CURRENCY_MISMATCH,INSUFFICIENT_FUNDS. A dead-lettered event is recorded (with its reason), but no balance or outbox change.- One transaction for an applied event: balance update + processed-event record + outbox message
{topic: "balance-changed", key: accountId, payload: {eventId, accountId, deltaMinor, balanceMinor}}. If the commit fails, nothing is written and the request fails with500 INTERNAL_ERROR, so a redelivery applies it exactly once. - Concurrency: many different events for one account (and other writers on the account) in parallel must all be applied with no lost update; commit conflicts are retried (bounded), never returned as errors.
Stretch goals (optional)
- In NOTES.md, describe how you would run the outbox relay to Kafka so that messages for one account stay in order and consumers can handle at-least-once delivery.
- Describe what you would log or count so an on-call engineer can tell a provider retry storm from a real processing bug (for example duplicate rate, dead-letter reasons, commit conflict retries), without logging secrets or raw card-related data.
- Sketch how you would handle a webhook signing secret rotation in production, including how long the old secret stays valid.
Where to work
Look for // TODO in src/signature.ts (verifySignature) and src/processor.ts (PaymentEventProcessor.process). You may refactor anything except the Database semantics, but keep the HTTP contract and createApp({ db, webhookSecret, clock }): the provided tests run two app instances on one Database and inject commit failures with db.failNextCommits().
Imports use the .js suffix because the project is native ESM ("module": "NodeNext").
Run
Node.js 20+. npm ci, then npm test (type-check + Vitest/Supertest; no network or database server needed). WEBHOOK_SECRET=… npm run build && npm start serves on port 3000. The provided tests must pass. Your own tests are part of the grade.
Deliver
A git repo (without node_modules/) + NOTES.md: decisions, trade-offs, what you'd do with more time.
Show the grading rubric
Grading rubric — Idempotent payment webhook processor (Express + TypeScript) (100 pts)
For a senior payments engineer, weigh correctness under retries and parallel deliveries most: exactly-once balance effect, one atomic write with the outbox message, and bounded conflict retries.
| Area | Pts |
|---|---|
| Correctness (provided tests incl. concurrency) | 30 |
| Idempotency & transactional boundaries (one transaction, outbox) | 20 |
| Concurrency (conflict retries, no lost updates, multi-instance safe) | 10 |
| Webhook security (raw-body HMAC, constant-time compare, replay window) | 10 |
| Own tests (concurrent duplicates, failure injection) | 15 |
| Structure & TypeScript quality (typed results, narrow unknown input) | 5 |
| NOTES.md: outbox relay, ordering, retries vs dead-letter, ack timing | 10 |
Levels: junior ≥60, mid ≥75, senior ≥85 and a strong NOTES.md.
What the levels usually look like:
- Junior (≥60): signature check and the happy path work, duplicates are detected sequentially; concurrency handled by luck or an in-process lock.
- Mid (≥75): everything inside one transaction, conflicts retried with a bound and small jitter, unique-id race turned into
DUPLICATE,unknownpayload fields narrowed withoutany, own tests withPromise.allandfailNextCommits. - Senior (≥85): all of the above plus NOTES.md on: how the outbox is relayed (polling vs CDC, at-least-once, consumer idempotency), event ordering per account (debit before credit → dead-letter vs park and retry), when to ack (fast 2xx + async processing vs synchronous), dead-letter replay, and what the
SELECT … FOR UPDATE/ unique-index version would look like in PostgreSQL.
Pricing
Practice assignments are free, up to 3 a day. Upgrade to Pro for more AI reviews of your solutions.
Pro
€9/month
- AI review of your solution against the rubric, up to 10 a day
- Everything in Free
Cancel anytime · 14-day refund. VAT included where applicable.
Who's behind this
Built by a full-stack Java developer from Estonia who made this during his own job search.
Every template is written by hand and checked automatically: its reference solution passes the provided tests (mvn verify for Java, npm test for TypeScript) and the starter project's tests fail, before an assignment ever reaches you.
- Cancel anytime
- Cancel from your account in one click. You keep Pro until the end of the month you paid for.
- 14-day refund
- Not useful for you? Request a full refund within 14 days of a Pro payment. Refund policy
- Your job posting isn't stored
- The text you paste is used only during generation and deleted right after. It never goes into our database. It is sent to our AI provider to create the assignment. Privacy policy
Honest note
Practice only. Don't use HireCheck to do a real employer's assignment. Practice beforehand, so you can ace it yourself.
FAQ
- Is this a screening tool for employers?
- No. HireCheck is for candidates who want to practice take-home assignments. It is not an employer screening or background-check tool.
- What's the difference between the samples and my free assignments?
- The two samples (one Java, one TypeScript) are fixed assignments anyone can download without an account. Your free assignments (up to 3 a day) are generated from the job postings you paste, and need an account.
- Other languages?
- Java/Spring Boot and Node.js/TypeScript today. Python is next.
- Do you store my job ad?
- No. It's deleted right after generation; we keep only the generated assignment so you can re-download it. See Privacy.
- Who's behind this?
- A full-stack Java developer from Estonia who got tired of guessing what take-homes look like.
Got a job ad open in another tab? Paste it in.
No card needed.