[frontend] restructure components
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
# Points of Interest
|
||||
|
||||
[](https://github.com/bernard-ng/points-of-interest/actions/workflows/backend-quality.yml)
|
||||
[](https://github.com/bernard-ng/points-of-interest/actions/workflows/backend-tests.yml)
|
||||
[](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.
|
||||
|
||||

|
||||
|
||||
## 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.
|
||||
|
||||
Reference in New Issue
Block a user