An interactive image gallery to query and display the ISIC Archive.
- Set the environment variables:
ISIC_NEW_API_URLto the absolute URL of the ISIC API root- this must include a trailing slash
- e.g. this value may be
https://api.isic-archive.com/api/v2/for testing
ISIC_AUTHORIZATION_SERVERto the absolute URL of authorization server- e.g. this value may be
https://api.isic-archive.com
- e.g. this value may be
ISIC_CLIENT_IDto the client identifierISIC_NEW_API_DOCS_URLto absolute URL of new api documentation.
- Run
npm ci - Run
npm run build - Deploy all files from the
codebase/directory to be served directly beneath the HTTP root path (/)- this is equivalent to Apache's
DocumentRoot "codebase" - e.g. a request for
https://beta.isic-archive.com/app.jsserves the filecodebase/app.js
- this is equivalent to Apache's
- Configure the file at
codebase/index.htmlto be served in response to requests for the HTTP root path (/) itself- this is similar to Apache's
DirectoryIndex - e.g. a request for
https://beta.isic-archive.com/serves the filecodebase/index.html
- this is similar to Apache's
- Configure the file at
codebase/error.htmlto be served as the body of 404 error responses, when a requested file cannot be found by the server- this is similar to Apache's
FallbackResource - e.g. a request for
https://beta.isic-archive.com/someotherthing.fooserves the filecodebase/error.html
- this is similar to Apache's
- Configure the directory at
codebase/sources/filesForDownloadto be served with the HTTPContent-Disposition: attachmentheader
- set
devHostanddevPortinappconfig.json. - set the environment variables.
- if you start first time you should run
npm run build. This command moves static files(images, libs, fonts) tocodebasefolder. - run
npm start. - open
devHostin browser.