Skip to content

xBwomp/bitstarter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitstarter

Bitstarter is a simple crowdfunding landing page for Teacher's Pet, plus a CLI utility that validates HTML structure using CSS selectors.

What changed

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.js argument 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 with https:// where applicable.
  • Added real automated tests for both web serving and HTML grading.

Project structure

.
├── assets/
│   ├── app.js
│   └── styles.css
├── checks.json
├── grader.js
├── index.html
├── package.json
├── Procfile
├── test/
│   ├── grader.test.js
│   └── web.test.js
└── web.js

Getting started

  1. Install dependencies:

    npm install
  2. Start the app:

    npm start
  3. Open:

    http://localhost:5000
    

Run checks

HTML selector grader

node grader.js --file index.html --checks checks.json

Automated tests

npm test

Notes

  • Procfile remains available for Heroku-style process launching.
  • The server respects the PORT environment variable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 55.9%
  • JavaScript 35.2%
  • CSS 8.8%
  • Procfile 0.1%