1.0.12 • Published 8 months ago
@nozen/http v1.0.12
@nozen/http
A command-line tool that scaffolds a ready-to-use Express project featuring:
- ESM setup (
.mjs) - Socket.IO
- Three.js
- p5.js
- Bootstrap + Bootstrap Icons
- EJS view engine
- Public folders for CSS/JS
favicon/support- Nodemon-based dev server
- Clean, modular file structure
🚀 Usage
Use npx to create a new project:
npx @nozen/httpYou’ll be prompted for:
- Project name (default:
my-app) - Author
- Description
- License (default:
ISC)
📁 Project Structure
Generated project will include:
my-app/
├── .gitignore
├── package.json
├── index.mjs
├── favicon/
├── public/
│ ├── css/
│ └── js/
├── src/
│ ├── app.mjs
│ └── socket.mjs
├── views/
│ ├── head.ejs
│ ├── index.ejs
│ └── layout.ejs🧠 Features
index.mjsstarts the server viasrc/app.mjsapp.mjsinitializes Express, Socket.IO, and routing- Includes visual demos for:
- CSS gradients
- Bootstrap buttons
- Bootstrap icons
- Live Socket.IO communication
- p5.js canvas animation
- Three.js rotating cube
📦 Inside the generated package.json
"type": "module"for native ESM- Nodemon as default runner (
npm start) - Dependencies installed automatically:
expresssocket.iothreep5ejsbootstrapbootstrap-icons
🛠 CLI Development Scripts (for this CLI project)
npm run patch # Bump patch version (x.y.z → x.y.z+1)
npm run minor # Bump minor version (x.y.z → x.y+1.0)
npm run major # Bump major version (x.y.z → x+1.0.0)
npm run pub # Publish to npm (with --access public)
npm run login # Log in to npm👤 Author
Noah Hagberg
Created for fast bootstrapping of modern web experiments using Node.js and real-time/visual tools.