noble-utils2
v1.0.0
Published
A collection of reusable server-side and client-side utilities for rapidly bootstrapping Express-based web applications. Covers session handling, input validation, password hashing, and front-end component patterns.
Readme
noble-utils — Node.js Web Toolkit
A collection of reusable server-side and client-side utilities for rapidly bootstrapping Express-based web applications. Covers session handling, input validation, password hashing, and front-end component patterns.
Install dependencies
npm install express express-session bcryptjs pg dotenv nodemonDatabase setup
psql -U postgres -f db/init.sqlConfiguration
Copy .env.example to .env and fill in your values:
cp .env.example .envRun
node server.js
# or with auto-reload:
npx nodemon server.jsServer starts at http://localhost:3000
Project structure
project/
├── server.js
├── .env
├── noble-utils/ — utility snippets
│ └── snippets/
│ ├── auth.js — bcrypt hash/verify
│ ├── db.js — postgres pool
│ ├── session.js — session middleware + guards
│ └── validate.js — field validators
├── routes/
│ ├── auth.js — /register /login /logout
│ ├── account.js — /account
│ ├── records.js — /records/new
│ └── admin.js — /admin
├── public/
│ ├── css/
│ │ ├── style.css
│ │ └── mobile.css
│ ├── js/
│ │ └── admin.js
│ ├── libs/swiper/ — place swiper-bundle.min.css + .js here
│ └── views/ — HTML pages
├── db/
│ └── init.sql
├── extras/
│ └── server-minimal.js
└── db-migration/
└── postgres-to-mysql.mdSwiper
Download from https://cdn.jsdelivr.net/npm/swiper@11/ and place in public/libs/swiper/:
swiper-bundle.min.cssswiper-bundle.min.js
Admin credentials
Login: Admin26
Password: Demo20
