Skip to content

MattesR/ui

 
 

Repository files navigation

Advanced UI for Hoover

Installation

Working on the UI needs a recent nodejs (see 'engine' in package.json for the version currently used).

  1. Download the code, install dependencies

    git clone https://github.com/hoover/ui.git
    cd ui
    npm install
  2. Development

    npm run dev
  3. Building

    npm run build

Deployment

The UI is just a bunch of static files, they are generated in the build folder. They consume the API of Hoover-Search. It can serve these files from disk if you set HOOVER_UI_ROOT in hoover/site/settings/local.py to the path of the UI's build folder.

Development

If you don't want to install Hoover-Search locally, you can develop against a remote server.

HOOVER_REMOTE_SEARCH_URL=https://hoover.crji.org/ npm run dev

The UI is served at http://localhost:3000 and API calls are proxied to the remote server.

Node upgrade

Upgrading the node version requires a version bump in the following files:

  • package.json (engine)
  • .travis.yml
  • Dockerfile

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.3%
  • CSS 2.6%
  • Dockerfile 0.1%