Materials Cloud discover section for the Materials Cloud 2D crystals database (MC2D).
For local development:
> npm install
> npm run dev
This runs the frontend with the development backend URLs.
To use production backend URLs instead:
> npm run dev:be-prod
To build an optimized package with development or production backend, use respectively
> npm run build:be-dev
> npm run build:be-prod
Preview either locally with
> npm run preview
The following branches are automatically deployed via Github actions in the following manner:
main
- deployed to https://materialscloud-org.github.io/discover-mc2d-react/
- and is running on the production backend.
develop
- deployed to https://materialscloud-org.github.io/discover-mc2d-react/develop
- and is running on the dev backend.