Skip to content
React-based Frontend for MathWebSearch
TypeScript CSS JavaScript HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.dockerignore
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
express.js
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

MathWebSearch frontend

Build Status

A frontend for the MWS search engine using create-react-app and Typescript

Configuring

The configuring is done with various environment variables:

  • REACT_APP_MWS_MODE if set to 'API' then a mwsapid daemon is expected in the backend otherwise a MWS daemon is expected (default)

  • REACT_APP_MWSAPI_URL set the url of the MWSAPI daemon (default: localhost:3001)

  • REACT_APP_MWS_URL sets the url of the MWS daemon (default: localhost:9090)

  • REACT_APP_LATEXML_URL url for the LaTeXML daemon (default: localhost:8080)

  • REACT_APP_MWS_BRANDING_TITLE sets the title in the header

  • REACT_APP_MWS_BRANDING_URL sets the url when clicked on this title

  • REACT_APP_DISABLE_EXAMPLES when set to 'true' disables the example button (by default not set)

  • REACT_APP_DISABLE_SYMBOLS when set to 'true' disables the symbols button (by default not set)

  • REACT_APP_THEME_NR set to {1, 2, 3} for choosing the {green, blue, red} theme (green default)

Usage:

  • $ npm install
    $ npm start
    

    starts an development server on http://localhost:3000

  • $ npm install
    $ npm run production
    

    starts a provisional production build that uses express.js to serve the static files and proxy the backend calls

  • for convenience there is also a dockerfile to create an docker image

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

You can’t perform that action at this time.