Loading…
On a fresh start the members list is just blank. Tell people what to do instead.
Click “Fork” on github.com/Hustlers2Developers/contribution-lab (no access request needed), then clone YOUR fork.
git clone https://github.com/<your-username>/contribution-lab.git
cd contribution-lab
git remote add upstream https://github.com/Hustlers2Developers/contribution-lab.gitYou need Node.js 20+. There is nothing to install. DevCircle runs at http://localhost:3000.
npm test
npm run devIn public/app.js, loadMembers() replaces the list with the members it fetched.
When members is empty, render one list item with a short message instead.
if (members.length === 0) {
const empty = document.createElement('li');
empty.className = 'muted';
empty.textContent = 'No members yet. Be the first to join the circle!';
list.replaceChildren(empty);
}Restart the server (the store resets) and reload: you should see the message. Sign up once: it should disappear.
Work on a branch, never on main. `npm run check` runs exactly what CI runs (formatting, tests, profile files); `npm run format` fixes formatting.
git checkout -b task/issue-20
npm run format
npm run check
git add .
git commit -m "show a friendly message when there are no members"
git push -u origin task/issue-20On GitHub click “Compare & pull request”. Write Closes #20 in the description: that links your PR to the task, and the XP is yours when it is merged (the first merged PR completes the task).
Closes #20