GithubHelp home page GithubHelp logo

ananto30 / ask-hadith Goto Github PK

View Code? Open in Web Editor NEW
55.0 5.0 7.0 2.22 MB

๐Ÿ”Ž A Hadith search engine

Home Page: https://askhadith.com

License: MIT License

HTML 5.50% CSS 1.22% JavaScript 7.44% Svelte 50.80% Go 28.10% TypeScript 6.95%
js mongodb hadith hadith-search-engine atlas go golang search-engine svelte sveltekit

ask-hadith's Introduction

Ask Hadith

askhadith.com
๐Ÿ”Ž Hadith search engine powered by Atlas Search

License Depfu status

Technologies ๐Ÿ“ฑ

  • Vercel: For serverless functions (in Go) to search and get hadiths.
  • MongoDB Atlas: Database and search engine.
  • Svelte: Web app (Frontend).
  • Netlify: Web deployment.
  • TailwindCSS: Styling.

Features โญ

  • Search Hadiths by anything (full text search).
  • Search hadith by book name and number, like bukhari 1029. (currently has some issues)
  • Bookmark hadith (local storage).
  • Install as PWA.
  • Copy and share hadith.

Development ๐Ÿง‘โ€๐Ÿ’ป

  • Web (Svelte)
cd web
npm install
npm run dev
  • Serverless functions (Go)
npm i -g vercel
vercel dev

Test the api /api/search?search=cat

Support ๐Ÿ™‹

"Buy Me A Coffee"

ask-hadith's People

Contributors

ananto30 avatar dependabot[bot] avatar depfu[bot] avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

ask-hadith's Issues

Want to contribute some Hadiths of Sahih Muslim sharig

Hello brother, assalamualikum,

Happy to here that you are doing a good job of collecting hadiths and giving search option to find them in a user friendly manner. So would you please allow me to contribute some hadiths and be part of the good job. If yes then please assaign me. May Allah bless you. Thanks

Depfu Error: No dependency files found

Hello,

We've tried to activate or update your repository on Depfu and couldn't find any supported dependency files. If we were to guess, we would say that this is not actually a project Depfu supports and has probably been activated by error.

Monorepos

Please note that Depfu currently only searches for your dependency files in the root folder. We do support monorepos and non-root files, but don't auto-detect them. If that's the case with this repo, please send us a quick email with the folder you want Depfu to work on and we'll set it up right away!

How to deactivate the project

  • Go to the Settings page of either your own account or the organization you've used
  • Go to "Installed Integrations"
  • Click the "Configure" button on the Depfu integration
  • Remove this repo (Ananto30/ask-hadith) from the list of accessible repos.

Please note that using the "All Repositories" setting doesn't make a lot of sense with Depfu.

If you think that this is a mistake

Please let us know by sending an email to [email protected].


This is an automated issue by Depfu. You're getting it because someone configured Depfu to automatically update dependencies on this project.

Try Replacing `$text` with `$search` in MongoDB Atlas

I haven't looked to closely at your collection but you can do something like this:

hadiths = client['test']['hadiths'].aggregate([
    {
        '$search': {
            'text': {
                'query': 'chicken', 
                'path': 'content'
            }
        }
    }, {
        '$project': {
            'content': 1, 
            'score': {
                '$meta': 'searchScore'
            }
        }
    }
])

for hadith in hadiths:
  print(hadith)

You can eliminate your sorting logic, and get autocomplete and fuzzy matching for free! Oh, Atlas is free to start as well. You may have to scale up later on. Give me a call.

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.