Skip to content

Csaba79-coder/campus-map

Repository files navigation

Campus Map

A map-based Angular application for marking, saving, editing, and deleting buildings on an interactive map after authentication.

Advanced Web Development — Exam Assignment, 2026.

Prerequisites

Installation

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-draw

Running the application

Start the JSON Server (mock backend):

npx json-server src/db/db.json --middlewares src/db/login-middleware.js

Start the Angular dev server (in a separate terminal):

ng serve

The application will be available at http://localhost:4200/

Tech stack

  • 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

Ports

Service Port URL
Angular dev server 4200 http://localhost:4200/
JSON Server (mock backend) 3000 http://localhost:3000/

JSON Server endpoints

  • GET http://localhost:3000/users
  • GET http://localhost:3000/buildings

Default credentials

Admin

  • Username: admin
  • Password: test01

User

  • Username: user
  • Password: test02

About

Map-based Angular app for marking, managing and visualizing campus buildings with interactive Leaflet maps, authentication, and multi-user support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors