The new (geo) data ingestion platform.
Note: The frontend requires the backend to be running on port 8000. See the main README for backend setup instructions.
Start the frontend app in dev mode:
npx nx serve
# or
npm run startTo create a production bundle:
npm run buildTo generate TypeScript client from OpenAPI specification:
npm run generate-api- Activate the backend virtual environment.
- From the top level project directory, run the script:
apps/frontend/scripts/generate-api.sh- Commit the changes.
-
Start the Docker Compose stack or start the standalone backend.
-
Download the OpenAPI JSON file from
http://localhost:8000/openapi.jsonand copy it to a new fileopenapi.jsonat the root of thefrontenddirectory.
curl -o openapi.json http://localhost:8000/openapi.json- To generate the frontend client, run:
npm run generate-api- Commit the changes.
Notice that everytime the backend changes (changing the OpenAPI schema), you should follow these steps again to update the frontend client.
To launch unit tests (Vitest):
npm run test:utTo launch end-to-end tests (Cypress):
npm run test:e2e
# or
npm run test:e2e:ci # headless mode specially used by the ciFrom the frontend directory:
docker build -t datafeeder-frontend:latest .docker run -p 4200:8080 datafeeder-frontend:latestThe frontend will be available at http://localhost:4200
From the project root directory:
# Build and start the frontend service
docker-compose up frontend
# Or rebuild and start
docker-compose up --build frontend