GithubHelp home page GithubHelp logo

greenie10 / solrfrontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmccandless/solrfrontend

0.0 2.0 0.0 14.1 MB

Front end web app for accessing a SolR database containing email documents

License: GNU General Public License v3.0

HTML 0.72% JavaScript 99.25% Batchfile 0.01% Shell 0.01%

solrfrontend's Introduction

Solr Email Front-End

A front-end web application in ReactJS for accessing a Solr database containing email documents.

Development Setup

Install NodeJS.

Clone this repository.

Navigate in the command line to the root of this repository (Probably called SolRFrontEnd).

If you are on Linux, run the following command in a terminal to install the appropriate tools:

npm install

If one makes changes to the index.js file in the root of this directory, make sure to run the refresh script (refresh.bat for Windows or refresh.sh for Linux) to recompile changes to web.js. If the refresh script has errors, run the following command from the terminal or try to install the package that the error claims is missing or inaccessible:

npm install

IMPORTANT: IF ONE MAKES ANY CHANGES TO ANY .js FILES IN THE MAIN PROJECT OR ANYWHERE IN THE DEPENDENCIES, RE-RUN THE REFRESH SCRIPT!

The solr-faceted-search-react package included in ./node_modules is a CUSTOM version. Do not update/remove/uninstall this package (there is a package by the same name in the npm registry) through npm. The repository for this can also be found here.

If one makes any changes to this package, make sure to run the watch script (watch.sh or windowsWatch.bat) located in the root directory of the solr-faceted-search-react package in order to compile changes. If the watch script throws any errors (i.e. does not remain open), one should try to install the package that the command claims is missing (simplest approach) or, if that does not work, run the following command from a terminal:

npm install

Additionally, remember to run the refresh script (refresh.bat for Windows or refresh.sh for Linux) in the main directory.

For much more helpful information on the solr-faceted-search package, see the original package information Solr Faceted Search.

If one wants to see one's changes before deployment, one can run a simple web server. Although any web server may be chosen, one can use http-server, which can be installed using the following command from a terminal (be sure to have root or admin permissions):

npm install -g http-server

Now, in the root directory of the project (or a directory containing index.html and web.js if testing for deployment), run the following command in a terminal:

http-server

The correct address/port to use will be displayed in the terminal. If nothing shows up in the browser, use the developer tools (CTRL+SHIFT+J for Chrome) to view the errors.

IMPORTANT: MAKE SURE to use CTRL+F5 after every compile/change cycle when trying to load the page as the browser will cache the page from the last run (CTRL+F5 clears the page cache).

Deployment

After completing the above setup steps, go into the index.js and change the value of the url constants (ROOT_URL and ROOT_ATTACHMENT_URL) to point to your Solr REST API and your database attachments directory.

To make sure these changes are reflected, run the refresh script (refresh.bat for Windows and refresh.sh for Linux) in the root directory to recompile changes to web.js in the root directory. If the refresh script has errors, run the following command from the terminal or try to install the package that the error claims is missing or inaccessible:

npm install

From the root directory of the repository, copy the web.js and index.html files to the server of your choice. These are the only files required for deployment.

If you have problems with the page not showing up, check the developer tools of your browser (CTRL+SHIFT+J for Chrome), and, if the console has an error involving CORS access, install a plugin from the Chrome web store for temporary development or change the server settings to allow CORS. If the page still does not show up, try navigating to the url of the Solr database to be sure that the web browser is not blocking the page for security reasons (i.e. unsafe certificates).

User Documentation

For more information on how to use this interface, please view the user documentation for the fields.

Known Issues

Clicking New Search in the UI does not reset the number of sort field parameters fields available.

solrfrontend's People

Contributors

israelterrill avatar greenie10 avatar cmccandless avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.