Giter VIP home page Giter VIP logo

lucadibello / beer-search-engine Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 25.11 MB

๐Ÿบ An intuitive beer search engine leveraging PyTerrier and FastAPI, with a user-friendly web interface powered by NextJS and React.js

Makefile 0.74% Python 32.03% TypeScript 44.15% JavaScript 0.28% Dockerfile 0.81% Shell 0.08% TeX 21.91%
bun information-retrieval nextjs search-engine terrier webscraping

beer-search-engine's Introduction

beer-search-engine's People

Contributors

dependabot[bot] avatar enrico-benedettini avatar lucadibello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

beer-search-engine's Issues

Additional pages

Add additional pages to the website.

Some ideas:

  • Top 50 beers page
  • Worst 50 beers page
  • Beers near me (based on location)

Result snippets

Show search results as snippets (2-3 lines of text with highlighted keywords, google-like)

[BUG] Fix crawler

The beerme.com crawler does not follow the chosen standard format, and a lot of information is simply missing (even though it is clearly available on the website...). Also, the information you are crawling is wrong: now you are crawling brewery information, not beers.

@Enrico-Benedettini you must follow this exact format (are TS typings but I hope you will understand):

type Brewer = {
  name: string | null
  city: string | null
  country: {
    code: string | null
    name: string | null
  }
  state: {
    name: string | null
  }
}

type CriticScore = {
  max: number
  actual: number
}

type BeerPrice = {
  amount: number
  currency: string
}

interface Beer {
  docno: string
  name: string
  description: string
  image_url: string
  price: BeerPrice | null
  style: null | string
  critic_score: CriticScore
  brewer: Brewer
  alcohol_bv: number
  tasting_notes: null | string
  closure: null | string
  packaging: null | string
}

UI Fixes

Todo list:

  • Add clickable search button in QueryInput component
  • Fix result snippet image when on smartphone
  • Implement Details button to display missing data
  • Highlight text in whole result snippet (not only in description)
  • Add warning message when no documents are available
  • Show spinner when images are loading
  • Fix homepage example queries
  • Add dynamic filters (name, abv, rating)
  • Add screen reader support + enhanced overall accessibility

Setup Next.js project

  • NextJS latest v14 with app router and turbopack!
  • Runtime & Package mangaer: Bun (let's test it)

Dependencies:

  • TailwindCSS
  • Stale-While-Revalidate (to discuss)

Notice:

Please, remember to use bun commands when working with the project!

  • Run project lifecycle functions: bun dev / bun build / ...
  • Install new packages: bun install ... / bun install -d ...

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.