- Set the environment variables:
ISIC_NEW_API_URL
to the absolute URL of the ISIC API root- this must include a trailing slash
- e.g. this value may be
https://api-sandbox.isic-archive.com/api/v2/
for testing
ISIC_AUTHORIZATION_SERVER
to the absolute URL of authorization server- e.g. this value may be
https://api-sandbox.isic-archive.com
- e.g. this value may be
ISIC_CLIENT_ID
to the client identifierISIC_NEW_API_DOCS_URL
to 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.js
serves the filecodebase/app.js
- this is equivalent to Apache's
- Configure the file at
codebase/index.html
to 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.html
to 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.foo
serves the filecodebase/error.html
- this is similar to Apache's
- Configure the directory at
codebase/sources/filesForDownload
to be served with the HTTPContent-Disposition: attachment
header
- set
devHost
anddevPort
inappconfig.json
. - set the environment variables.
- if you start first time you should run
npm run build
. This command moves static files(images, libs, fonts) tocodebase
folder. - run
npm start
. - open
devHost
in browser.