This repository contains a full-stack application for managing firewall rules, including a Node.js/Express REST API backend and a Next.js frontend dashboard. The backend uses PostgreSQL for data storage.
- backend/ — Node.js + Express REST API for firewall rule management
- frontend/ — Next.js dashboard for interacting with the API
- Add, remove, update, and retrieve firewall rules (IP, URL, port)
- Blacklist and whitelist support
- PostgreSQL database integration
- Modern dashboard UI (Next.js)
- Navigate to the
backend
directory:cd backend
- Install dependencies:
pnpm install
- Copy
.env.example
to.env
and fill in your database credentials. - Start the backend server:
pnpm start
- Navigate to the
frontend
directory:cd ../frontend
- Install dependencies:
pnpm install
- Copy
.env
if needed and set the API server URL. - Start the frontend development server:
pnpm dev
- Open http://localhost:3000 in your browser.
The backend exposes endpoints under /api/firewall
for managing rules. See backend/README.md
for full API documentation.
- See
backend/.env.example
andfrontend/.env
for required variables.