Skip to content

chartes/dots-vue

Repository files navigation

dots-vue-generic

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:

Node

package - vue package - vite package - eslint

package - Bulma package - Mirador

Project setup

Clone the GitHub repository:

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)

Install

yarn

Compiles and hot-reloads for development

⚠️ if collections'settings have been defined, a relative path CUSTOM_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

Compiles and minifies for staging

For a staging server (preproduction), reads .env.staging variables:

(CUSTOM_SETTINGS_PATH=../relative/path/to/custom/settings/folder) yarn build:staging

Compiles and minifies for production

For a production server, reads .env.production variables:

(CUSTOM_SETTINGS_PATH=../relative/path/to/custom/settings/folder) yarn build:prod

Run preview server

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.

Lints and fixes files

yarn lint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •