This search experience is powered by Typesense which is a blazing-fast, open source typo-tolerant search-engine. It is an open source alternative to Algolia and an easier-to-use alternative to ElasticSearch.
src/
andindex.html
- contain the frontend UI components, built with Typesense Adapter for InstantSearch.js
To run this project locally, install the dependencies and run the local server:
- Install parcel builder
npm install -g parcel-bundler # Need to use NPM for this: https://github.com/parcel-bundler/parcel/issues/1036#issuecomment-559982275
- Create local env variable shell file
export TYPESENSE_HOST=localhost
export TYPESENSE_PORT=8108
export TYPESENSE_PROTOCOL=http
export TYPESENSE_COLLECTION_NAME=contents
export TYPESENSE_SEARCH_ONLY_API_KEY=xxxx
- Run npm start
npm start
Open http://localhost:3000 to see the app.
- Run parcel build
npm run build
- Upload files to static storage such as S3 or Gcloud storage and configure CDN