[frontend] restructure components

This commit is contained in:
2025-10-12 05:06:13 +02:00
parent 01b84042ab
commit 9b20b08ab2
24 changed files with 830 additions and 248 deletions
+12 -8
View File
@@ -1,7 +1,15 @@
# Points of Interest
[![Backend Quality](https://github.com/bernard-ng/points-of-interest/actions/workflows/backend-quality.yml/badge.svg)](https://github.com/bernard-ng/points-of-interest/actions/workflows/backend-quality.yml)
[![Backend Tests](https://github.com/bernard-ng/points-of-interest/actions/workflows/backend-tests.yml/badge.svg)](https://github.com/bernard-ng/points-of-interest/actions/workflows/backend-tests.yml)
[![Frontend Quality](https://github.com/bernard-ng/points-of-interest/actions/workflows/frontend-quality.yml/badge.svg)](https://github.com/bernard-ng/points-of-interest/actions/workflows/frontend-quality.yml)
---
This repository hosts a proof-of-concept "points of interest" application composed of a Symfony API and a React client. Users can submit nearby signals and explore aggregated heatmaps that visualise recent activity.
![Screenshot](./screenshot.png)
## Project structure
- `server/` Symfony 7 API that stores and broadcasts signal submissions.
@@ -10,11 +18,8 @@ This repository hosts a proof-of-concept "points of interest" application compos
## Prerequisites
- Node.js 20+
- npm 10+
- PHP 8.2+
- Composer 2+
- Docker (to run the bundled Postgres + PostGIS service)
- PostgreSQL 16 with the PostGIS extension (a ready-to-use container is provided via Docker Compose)
- PHP 8.4+
- Docker
## Running the API server
@@ -22,8 +27,7 @@ This repository hosts a proof-of-concept "points of interest" application compos
cd server
composer install
# Boot the Postgres + PostGIS container
docker compose up -d postgres
docker compose up
# Prepare the database schema
php bin/console doctrine:database:create --if-not-exists
@@ -31,7 +35,7 @@ php bin/console doctrine:migrations:migrate --no-interaction
php bin/console doctrine:fixtures:load
# Start the Symfony development server
symfony server:start
symfony serve --no-tls
```
The API listens on `http://127.0.0.1:8000` by default. Adjust the Mercure hub and other environment variables in `.env` as needed.