A curated, searchable, bilingual (English/French) job list for workforce development bodies. Built for Ignite in the Fredericton Capital Region and designed so other regions can run their own instance. See PLAN.md for the roadmap and design decisions.
| Path | What |
|---|---|
apps/web |
Public site + moderator UI — React Router v8, Tailwind v4, shadcn/ui, i18next. Its Node server (server.js, server/app.ts) also serves the API at /api |
apps/api |
Hono API (a library mounted by apps/web) — public search, moderator endpoints, sign-in (OIDC against FerrisKey) |
packages/db |
Drizzle schema, migrations and seed data |
scrapers |
Python scrape workers on a Postgres-backed queue |
e2e |
Browser tests (Playwright): sign-in through FerrisKey, emails via Mailpit |
Requirements: Node 24, pnpm 9, uv, direnv, and a Postgres 18 database (for uuidv7()).
Postgres is provisioned outside this repo. .envrc exports DATABASE_URL pointing at it, so
run anything that touches the database through direnv exec .. If you have run
direnv allow, .envrc loads automatically when you cd into the project and you can drop
the prefix.
pnpm install
(cd scrapers && uv sync)
direnv exec . pnpm db:migrate # safe to re-run
direnv exec . pnpm db:seed # site settings, locations, industries, job typesSign-in uses FerrisKey, an OIDC identity provider, and every email
(password resets) is caught by Mailpit. Both run in Docker; FerrisKey keeps its data in a
ferriskey database on the same Postgres server (create it once: CREATE DATABASE ferriskey;).
direnv exec . ./scripts/dev-infra.sh # start FerrisKey + Mailpit (`... down` to stop)
direnv exec . pnpm auth:bootstrap --seed # realm, SMTP, login client, a dev moderator- FerrisKey admin console: http://localhost:8190 (admin / admin)
- Mailpit inbox: http://localhost:18125
- Dev moderator:
moderator@ignite.local/Moderator-Password-1
The bootstrap writes the login client's credentials to .env.local (git-ignored). The API
loads that file by itself in development; anything already set in the environment (e.g. by
.envrc) takes precedence. Restart pnpm dev after re-running the bootstrap. The bootstrap is
safe to re-run; run it again after changing APP_BASE_URL (it registers that
origin's callback URL).
direnv exec . pnpm devThis starts one server on http://localhost:3000: the site, with the API under /api (edits to
apps/api reload without a restart). Opening
http://localhost:3000 redirects to /en or /fr based on your language cookie or browser
language.
There are two worker pools. The http pool reads platform APIs and plain pages. The browser pool runs headless Chromium for sites that need JavaScript or refuse plain HTTP clients. Run each in its own terminal:
(cd scrapers && uv sync --extra browser && uv run python -m playwright install chromium) # once
cd scrapers && direnv exec .. uv run ignite-worker --pool http
cd scrapers && direnv exec .. uv run ignite-worker --pool browserWorkers wait for queued scrape jobs and wake up as soon as one is added. For each URL they try, in order:
Short links (e.g. zurl.to) are first resolved to the page they redirect to.
- Platform API: BambooHR, Greenhouse, SmartRecruiters, Workday, Oracle Recruiting
Cloud, Rippling, Zoho Recruit, HR4 (e.g. Shift Auto Group), VidCruiter (
*.hiringplatform.ca, e.g. Cannabis NB), Taleo (e.g. Bayshore) and ADP Workforce Now (e.g. ANBL; keep bothcidandccIdin the URL). Both single postings and whole careers pages work. Notes per platform:- Workday search URLs keep their filters (
?locations=...). Taleo boards takekeyword=andlocation=(a location id or a place name, e.g.&location=Fredericton). - UKG Pro Recruiting (UltiPro, e.g. Steele Auto Group) keeps a board URL's search text and
sort order (
?q=fredericton&o=relevance); its other filters are not applied. - PeopleSoft Candidate Gateway (e.g. NB Power) is read through its job-search form.
- GNB e-Recruitment (
www.ere.gnb.ca, provincial public service) reads every open competition, keeping the department and language filters (?dep=SNB&lang=F). Competitions GNB has moved to Oracle Recruiting are read from Oracle. - Sobeys: the site's search is not in its URL, so add our own
?location=<city>(and optionallykeyword=/category=) tojobs.sobeyscareers.com. - Lightcast Career Coach (e.g. NBCC
/work-opportunities): every open employer posting on the college's board, or one with?posting=<id>. - HR4 careers pages return every opening; the site's filters are not in its URL.
- AppyHere (e.g. Dollarama): single position links work; an account page gives only the 10 newest positions nationwide.
- GC Jobs (federal public service) runs in the browser pool: paste a search URL, e.g. with
locationsFilter=fredericton, and every matching posting is read.
- Workday search URLs keep their filters (
- Structured data: schema.org
JobPostingas JSON-LD, microdata or RDFa in the page (Venor, CareerBeacon, Job Bank, SAP SuccessFactors sites such as CMHC, many employer sites). - For careers pages, a job board the page links to or embeds on one of the platforms above (e.g. lastwall.com/careers linking to its Rippling board) is read through that platform.
- Otherwise links that look like postings are followed and read the same way.
- When plain HTTP finds nothing or is refused, the job moves to the browser pool. If the browser finds nothing either, the source is marked for manual entry. A URL that serves a document (e.g. a PDF posting) goes straight to manual entry.
LinkedIn is never fetched. Indeed is tried only for single viewjob?jk= postings, and Indeed
usually refuses, so expect manual entry. A posting whose page is gone (404/410, or a requisition
Workday no longer lists) is marked closed. At most SCRAPER_MAX_POSTINGS (default 60) postings
are read from one careers page per scrape.
To see what the scrapers make of a URL without touching the database:
cd scrapers && uv run ignite-scrape https://smartskin.bamboohr.com/careers
cd scrapers && uv run ignite-scrape --kind posting "https://www.careerbeacon.com/en/job/2241831"FerrisKey only proves who someone is; roles live in our users table (roles is a text array
of moderator and/or admin).
- An admin creates the person's account in the FerrisKey console (realm
ignite→ Users). Self-registration is off. The person sets a password with "Forgot your password?" on the sign-in page (the email arrives in Mailpit in dev), or the admin sets one in the console. - When they first sign in, the API creates their
usersrow from the ID token (email, name). They see "Access denied" on/moduntil a role is granted:
direnv exec . pnpm db:users list
direnv exec . pnpm db:users grant someone@example.org moderator
direnv exec . pnpm db:users revoke someone@example.org moderator
# Grant before their first sign-in using their FerrisKey user id (shown in the console):
direnv exec . pnpm db:users grant 01a1... adminHow sign-in works: the API runs the OIDC authorization-code flow with PKCE
(/api/auth/login, /api/auth/callback, /api/auth/logout), validates the ID token
(including the nonce), and keeps a server-side session (sessions table, 12 hours) behind an
httpOnly cookie. Only a hash of the session token is stored. Signing out also ends the
FerrisKey session.
To skip sign-in entirely while developing, start pnpm dev with AUTH_DEV_MODERATOR=1: every
request is then treated as an admin. It is ignored when NODE_ENV=production.
The moderation screens live under /en/mod (or /fr/mod):
- Review: approve, reject or close postings and set their location, industry and job type.
- Sources: add job links or careers pages to scrape, see each scrape's result, retry, and jump to manual entry for sites that block the scraper.
- Add a job: manual entry for LinkedIn, Indeed and other unscrapable sites.
- Publish: preview what's new or dropped since the last list, then publish a new list.
pnpm typecheck
direnv exec . pnpm test # API integration tests; they use DATABASE_URL and clean up after themselves
(cd scrapers && uv run pytest && uv run ruff check .)Browser tests drive the real sign-in through FerrisKey and read the password-reset email from
Mailpit. They need the dev stack running (FerrisKey, Mailpit, pnpm dev):
(cd e2e && uv sync && uv run python -m playwright install chromium) # once
direnv exec . sh -c 'cd e2e && uv run pytest' # E2E_BASE_URL defaults to :3000Edit packages/db/src/schema.ts, then run direnv exec . pnpm db:generate and commit the
migration. The Python workers use plain SQL against the same tables.
cp .env.example .env # database, domain, session secret, FerrisKey, SMTP
docker-compose up -d --build # includes the http and browser scraper workers
docker-compose run --rm migrate pnpm auth:bootstrap --print-env
# put the printed OIDC_CLIENT_SECRET into .env, then:
docker-compose up -dPostgres is not part of the stack; point DATABASE_URL at your instance and create a
ferriskey database on it for FerrisKey. For a database on the Docker host use
host.docker.internal as the hostname. The migrate service applies migrations and the seed
on every up. Caddy terminates TLS for SITE_DOMAIN and serves FerrisKey at
auth.SITE_DOMAIN (both need DNS records). FerrisKey runs as separate API and web images, not
the standalone image, whose bundled nginx breaks the https issuer behind Caddy. Database
backups are the responsibility of whoever runs Postgres.
Copy packages/db/src/seed/fredericton.ts and replace the site name, region, locations and
taxonomies, then point src/seed.ts at the new file.