Frontend for LAPOR!, a citizen complaint platform built with Next.js and React. This app provides a public portal for citizens and an internal dashboard for officers and admins.
- Next.js 16 (App Router)
- Tailwind CSS 4 + shadcn/ui
- Zustand
- Axios
- Prettier, ESLint, Husky, Commitlint
- Node.js 20+
- npm 10+
- Running LAPOR backend service
- Clone the repository from the remote source
git clone https://github.com/febriadj/lapor-client.git-
Move into the project directory
-
Install dependencies
npm inpm run devDefault URL: http://localhost:3000
Create a local .env file:
NEXT_PUBLIC_API_URL=http://localhost:8080| Variable | Required | Description | Default |
|---|---|---|---|
NEXT_PUBLIC_API_URL |
Yes | Base URL of the backend API service | http://localhost:8080 |
citizen: public portal access.officer: dashboard operational access.admin: full dashboard access including user management and audit logs.
Protected pages are redirected to login for unauthenticated users.
This project is licensed under the MIT License. See the LICENSE file for details.

