Skip to content

User interface components using the Phaidra API

License

Notifications You must be signed in to change notification settings

RastislavHudak/phaidra-ui

 
 

Repository files navigation

phaidra-ui

User interface components using phaidra-api

Prerequisities

# install nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Install

# install dependencies
git clone git@github.com:phaidra/phaidra-ui.git
cd phaidra-ui
npm install

Configure

/etc/phaidra/phaidra-ui.js

export default {
  defaultinstance: 'myinstance.example.com',
  global: {
    showinstanceswitch: 1,
    enablelogin: 1
  },
  instances: {
    'myinstance.example.com': {
      baseurl: 'myinstance.example.com',
      api: 'https://services.myinstance.example.com/api',
      solr: 'https://solr.myinstance.example.com:8983/solr/myinstance',
      primary: '#000000',
      address: 'Institution | Street | City',
      phone: '+number',
      email: 'support.phaidra@example.com'
    }
  }
}

Run (dev server)

# serve with hot reload at localhost:8080
npm run dev

Build for production

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

About

User interface components using the Phaidra API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.7%
  • Vue 37.0%
  • CSS 4.8%
  • HTML 0.5%