Giter Site home page Giter Site logo

typesense / showcase-guitar-chords-search-nuxt-js Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 2.0 200 KB

A demo that shows how to implement Typesense in a Nuxt.js app

Home Page: https://guitar-chords-search-nuxt-js.typesense.org

Vue 67.22% TypeScript 32.78%
instantsearch nuxt nuxtjs typesense vue typesense-instantsearch-adapter typesense-showcase vue-instantsearch

showcase-guitar-chords-search-nuxt-js's Introduction

๐ŸŽธ Instant Guitar Chord Positions Search, powered by Typesense - NuxtJS

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
โ”œโ”€โ”€ components/
โ”‚   โ””โ”€โ”€ UI components...
โ”œโ”€โ”€ plugins/
โ”‚   โ””โ”€โ”€ vue-instantsearch.ts # vue-instantsearch setup
โ”œโ”€โ”€ utils/
โ”‚   โ””โ”€โ”€ typesense.ts # typesense-instantsearch-adapter config
โ””โ”€โ”€ app.vue # guitar chords search

Development

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

Installation

git clone https://github.com/typesense/showcase-guitar-chords-search-nuxt-js.git

cd showcase-guitar-chords-search-nuxt-js

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 dev

Open http://localhost:3000 to see the app โœŒ๏ธ

Deployment

  • Set env variables required in nuxt.config.ts to point the app to the Typesense Cluster

showcase-guitar-chords-search-nuxt-js's People

Contributors

jasonbosco avatar phihero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.