Skip to content

typesense/showcase-guitar-chords-search-react-native

Repository files navigation

🎸 Instant Guitar Chord Positions Search, powered by Typesense - React Native

Tech Stack

All make for a blazingly fast search experience 🔥🔥🔥

The guitar chord dataset & chord svg generation is from tombatossals which contains 2141 chord shapes of 552 chords.

Project Structure

/
├── scripts/
│   ├── data/
│   │   ├── guitar.json
│   │   └── schema.json
│   └── indexTypesense.ts # script that index data from guitar.json into typesense server
├── src/
│   ├── components/
│   │   └── UI components...
│   └── utils/
│       ├── reactChords.ts # draw guitar chord svg
│       └── typesense.ts # typesense-instantsearch-adapter config
└── App.tsx # guitar chords search

Development

To run this project locally, make sure you have docker and nodejs, install the dependencies and start the local server:

Installation

git clone https://github.com/typesense/showcase-guitar-chords-search-react-native.git

cd showcase-guitar-chords-search-react-native

npm i

Start typesense server

npm run start:typesense # or: docker compose up

Index data into typesense

npm run index:typesense

Start the dev web app

npm run start
# or
npm run android
npm run ios
npm run web

Deployment

Set env variables to point the app to the Typesense Cluster

EXPO_PUBLIC_TYPESENSE_SEARCH_ONLY_API_KEY=xxx
EXPO_PUBLIC_TYPESENSE_HOST=xxx.typesense.net
EXPO_PUBLIC_TYPESENSE_PORT=443
EXPO_PUBLIC_TYPESENSE_PROTOCOL=https

About

A demo that shows how to implement Typesense in a React Native app

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project