Add a clearly labelled demo-data script for local development
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nodejs, typescript
- Domain
- backend, developer-experience
Research direction
Start with apps/api/package.json to see how existing scripts are wired, and apps/api/src/config/env.ts for where the NODE_ENV=production refusal belongs. Read the schemas under apps/api/src/models to learn the required fields for users, posts, comments and follows, then write an idempotent seeder (upsert or find-or-create) using the demo_ prefixed names. Document the command in docs/DEVELOPMENT.md; done when it runs on an empty database, repeats without duplicates, refuses in production, and passes npm run typecheck, npm test and npm run lint.
Written by the indexing model from the issue text.
Description
Developers need a populated app to test feeds and profiles, but must not confuse it with real data.
What to do
Add npm run seed:demo that creates a handful of obviously fake users, posts, comments and follows in the local database. Every demo user must have a name that makes it clear (for example demo_alice), small realistic numbers, no fake paid subscriptions, and the script must refuse to run when NODE_ENV=production. Running it twice must not create duplicates. Document it in docs/DEVELOPMENT.md.
Where to look
apps/api/src/models, apps/api/package.json, apps/api/src/config/env.ts.
Done when
The script runs on an empty database, is safe to repeat, refuses in production, and has a short test or a documented manual check.
How to work on it
Fork the repo, branch from main, and follow CONTRIBUTING.md. Run npm run typecheck, npm test and npm run lint before opening a PR. Comment here if you'd like to take it, and ask if anything is unclear.
Generated by Claude Code
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 6
- Avg merge
- 1h 59m
- Merged PRs (30d)
- 59
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Haseeb-MernStack/commune
-
enhancement good first issue web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Haseeb-MernStack/commune#141 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Haseeb-MernStack/commune#138 ·
Maintainers usually reply within 1 day
-
api good first issue tests
Difficulty 2/5 Half a day Newbie friendliness 72/100
Haseeb-MernStack/commune#132 ·
Maintainers usually reply within 1 day
-
ci good first issue tests
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Haseeb-MernStack/commune#133 ·
Maintainers usually reply within 1 day
-
accessibility good first issue web
Difficulty 2/5 Half a day Newbie friendliness 74/100
Haseeb-MernStack/commune#117 ·
Maintainers usually reply within 1 day
All issues in Haseeb-MernStack/commune
Similar issues
-
[UI] Guard webApis against undefined window in SSR environmentsPossibly taken @madhavzanwar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
headroomlabs-ai/headroom#4992 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paperclipai/paperclip#22575 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 82/100
lingdojo/kana-dojo#34502 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
bug frontend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nikhilb2/simple_invoicing#935 ·