Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
/ check-search Public archive

Frontend client for the similarity search APIs.

License

Notifications You must be signed in to change notification settings

meedan/check-search

Repository files navigation

check-search

Frontend client for Check's similarity search APIs.

Quick start

Make sure to have node.js v15+ installed.

# clone repository
$ git clone git@github.com:meedan/check-search.git
$ cd check-search/

# Run setup script. This will install dependencies, and copy and set your configuration
$ bin/setup.sh

# run the dev server
$ npm start

The frontend should now be available at http://localhost:8001

Using Docker

Make sure Docker and docker-compose are installed.

# clone repository
$ git clone git@github.com:meedan/check-search.git

$ docker-compose up

# the frontend should now be available at http://localhost:8001

Localization

Localization is done on Transifex. You must have the tx client installed on your computer and configured to communicate with the Transifex server.

To create a new English string to localize, simply add it as a <FormattedMessage id="new.id" defaultMessage="My new string"/> component in the React application. Running npm run transifex:extract will automatically create the following field in localization/transifex/source.json:

{
  "new.id": {
    "string": "My new string"
  }
}

You can run npm run transifex:upload to send the source.json file to the Transifex server. Translation happens on the Transifex app. To download new translations, run npm run transifex:download.

About

Frontend client for the similarity search APIs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages