js/apps/system/_admin/aardvark/APP/react/README.md
This is the React-based aardvark web interface. It is built with a hand-maintained
webpack configuration (webpack.config.js)
and Babel (babel.config.js). It was previously
built with Create React App (react-scripts) via react-app-rewired; both were removed
because they are deprecated and pulled in a large tree of vulnerable dependencies.
In the project directory, you can run:
yarn startRuns the app in development mode via webpack serve on
http://localhost:3000, with Fast Refresh. Requests to /_db/**
are proxied to a local ArangoDB (ARANGODB_HOST/ARANGODB_PORT/ARANGODB_SSL, defaults
localhost:8529, non-SSL); see src/setupProxy.js.
yarn run buildBuilds the app for production into the build folder: minified, content-hashed, and
gzip-compressed. This output is served verbatim by the Foxx app (see ../manifest.json),
so its layout (static/{js,css,media}, copied assets/, favicon.ico, index.html
plus .gz variants) is a contract — change it only in step with the manifest.
yarn lintRuns ESLint over the sources.