The DANDI Archive web application (i.e. the dandi-archive frontend).
git clone https://github.com/dandi/dandi-archive
cd dandi-archive/web
npm install
npm run devThe web app will be served at http://localhost:8085/.
To be useful, this app requires a server component, which you can run locally; see the instructions.
To fix the code formatting and check for common errors, run:
npm run lintThe web app uses TypeScript typings (src/types/schema.ts) that are automatically generated from the dandiset metadata's
JSON schema.
These typings are used only for linting, and not to drive any functionality.
To change the schema version (and as a result, the types), use the npm run migrate command.
For example, to migrate to schema version 0.5.1, run:
npm run migrate 0.5.1-
VITE_APP_SERVER_DOWNTIME_MESSAGE
- A custom error message displayed when the backend server can't be reached.
-
VITE_APP_FOOTER_BANNER_TEXT
- A custom message to show in an information banner on the DANDI homepage. The banner does not render if this isn't set.