A map-based Angular application for marking, saving, editing, and deleting buildings on an interactive map after authentication.
Advanced Web Development — Exam Assignment, 2026.
- Node.js v24.x LTS
- npm v11.x
git clone https://github.com/Csaba79-coder/campus-map.git
cd campus-map
npm install
npm i -g json-server@0.17.4
ng add @angular/material
npm install leaflet @types/leaflet
npm install leaflet-draw
npm install @ngrx/store @ngrx/effects
npm install @types/leaflet-drawStart the JSON Server (mock backend):
npx json-server src/db/db.json --middlewares src/db/login-middleware.jsStart the Angular dev server (in a separate terminal):
ng serveThe application will be available at http://localhost:4200/
- Angular 21
- Angular Material (Azure/Blue theme)
- NgRx (state management)
- Leaflet + Leaflet Draw (interactive maps & polygon drawing)
- json-server (mock REST API)
- TypeScript 6
- Node.js 24
| Service | Port | URL |
|---|---|---|
| Angular dev server | 4200 | http://localhost:4200/ |
| JSON Server (mock backend) | 3000 | http://localhost:3000/ |
GET http://localhost:3000/usersGET http://localhost:3000/buildings
- Username:
admin - Password:
test01
- Username:
user - Password:
test02