This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Browse (Module)
Joost Wagenaar edited this page May 23, 2019
·
7 revisions
Browse is a module that will allow users to interact with the data that is captured as meta-data and files within the SPARC data resource. The Browse module is implemented as a Vue.js application leveraging web-components to create a modular interface.
The front-end framework leverages Element components.
The general structure of the application is outlined below:
/dat_core/
|-- static
`-- dist
|-- _build
`-- browse.html
|-- vue_app
|-- public
`-- index.html
|-- src
|-- assets
|-- components
|-- App.vue
`-- main.js
|-- babel.config.js
|-- package.json
|-- vue.config.js
|-- webpack.config.js
`-- webpack.config.prod.js
|-- __init__.py
`-- views.py
-
npm install
&&npm install --only=dev
to install both dependencies and devdependencies for application. -
npm run build-prod
to run webpack and generate static assets. The static assets are exported to thestatic
folder of the Flask module and served by the Flask server.
Routes are defined in views.py
and include:
-
/browse/
: main browse entry page.