Bitstarter is a simple crowdfunding landing page for Teacher's Pet, plus a CLI utility that validates HTML structure using CSS selectors.
The project has been modernized from a legacy tutorial baseline:
- Upgraded runtime targets to modern Node/npm engine versions.
- Replaced deprecated server patterns (including
new Buffer(...)) with a small Node HTTP server. - Simplified
grader.jsargument parsing and selector checks so the grader runs without missing external packages. - Moved inline CSS/JS into separate files under
assets/. - Refreshed page branding/content and replaced insecure
http://asset links withhttps://where applicable. - Added real automated tests for both web serving and HTML grading.
.
├── assets/
│ ├── app.js
│ └── styles.css
├── checks.json
├── grader.js
├── index.html
├── package.json
├── Procfile
├── test/
│ ├── grader.test.js
│ └── web.test.js
└── web.js
-
Install dependencies:
npm install
-
Start the app:
npm start
-
Open:
http://localhost:5000
node grader.js --file index.html --checks checks.jsonnpm testProcfileremains available for Heroku-style process launching.- The server respects the
PORTenvironment variable.