JWT API Backend with Abuse/IP Controls (AdonisJS)
Overview
A Node.js API server built on AdonisJS, pre-wired with JWT authentication, CORS, the Lucid ORM, and an IP-reputation layer. The backend half of an internal admin tooling pair.
Why It Exists
An internal admin/management application needed a clean, secured API foundation with authentication, request hygiene, and basic abuse protection out of the box.
What We Built
An AdonisJS 4.1 application structured into app, config, database, and start, exposed via server.js plus a companion command-server.js. It ships JWT auth, CORS, bodyparser, Lucid migrations/seeds against SQLite, Redis support, and WebSocket capability. Notably it integrates dnsbl/dnsbl-lookup and ip for DNS blacklist / IP-reputation lookups, with Docker and docker-compose plus helper scripts (installDocker.sh, build.sh) for deployment.
Technologies & Approach
AdonisJS (Node MVC) with the Ace CLI, Lucid ORM, Redis, SQLite, and a Dockerized runtime. DNSBL lookups add lightweight abuse/spam protection at the API edge.
Outcome / Impact
Delivered a reusable, secured Node API baseline. Paired with adminuse-frontend to form a complete internal admin tool.
Capabilities Demonstrated
- Secured token-based API design on AdonisJS
- IP-reputation / DNSBL abuse-protection integration
- Containerized Node service packaging