Frontend application to browse a DoTS endpoint (DoTS).
⚠️ Install / Launch first the DTS API (or ensure to point to deployed service):
See the API Readme
Master dependencies:
in a local folder dedicated to the project
git clone https://github.com/chartes/dots-vue.git
From the app folder (cd path/to/dots-vue
)
yarn
⚠️ if collections'settings have been defined, a relative pathCUSTOM_SETTINGS_PATH
environment variable has to be set as below :
projects_folder/ # Folder where your apps are deployed
dots-vue/ # This cloned project
dots-vue-my-custom-settings/ # OPTIONAL. Configuration files for a given deployed dots-vue
configurations_files # See an example at [dots-vue-demo-settings](https://github.com/chartes/dots-vue-demo-settings)
in this case CUSTOM_SETTINGS_PATH=../dots-vue-my-custom-settings
For a local development server, reads .env.development
variables:
(CUSTOM_SETTINGS_PATH=../relative/path/to/custom/settings/folder) yarn serve
For a staging server (preproduction), reads .env.staging
variables:
(CUSTOM_SETTINGS_PATH=../relative/path/to/custom/settings/folder) yarn build:staging
For a production server, reads .env.production
variables:
(CUSTOM_SETTINGS_PATH=../relative/path/to/custom/settings/folder) yarn build:prod
After a yarn build:prod
or yarn build:staging
you can run a server to serve the produced dist
folder with:
yarn preview
for production or
yarn preview --mode=staging
for staging.
yarn lint