Skip to content

TrueCritic: Discover top-rated restaurants and hotels, filtered by quality and industry accolades.

License

Notifications You must be signed in to change notification settings

conorfryer/truecritic

Repository files navigation

TrueCritic

Curated Quality, Simplified

Build Status

truecritic

TrueCritic is a web application that helps users quickly find top-rated restaurants and hotels based on customizable search criteria. Leveraging the Google Places API, it provides an easy way to search by location, rating, price level, and more. TrueCritic is designed with a clean, intuitive interface that lets users navigate with ease and view detailed results directly in Google Maps.


Features

  • Search by Location: Enter any location to find restaurants and hotels in the vicinity.
  • Advanced Filters: Narrow down results by rating, search radius, and price level.
  • Business Links: Click on results to open the business page on Google Maps directly, ensuring quick access to essential information.
  • User-Friendly UI: Minimalist design with expandable search options for an enhanced user experience.
  • Responsive Design: Optimized for both desktop and mobile devices.

Tech Stack

  • Frontend: Next.js, React, Tailwind CSS
  • Backend: Node.js, Express
  • API: Google Places API

Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js
  • NPM
  • A Google Cloud account with access to the Places API

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/truecritic.git
    
  2. Navigate to the project directory:

    cd truecritic
    
  3. Install the dependencies:

    npm install
    
  4. Set up environment variables:

  • Create a .env.local file in the root of the project.

  • Add your Google API key:

    NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_google_maps_api_key
    
  1. Run the development server:
    npm run dev
    
  2. Open http://localhost:3000 to view it in the browser.

Deployment

This project is deployed using Vercel. To deploy:

  1. Link your GitHub repository to Vercel.
  2. Add your environment variable NEXT_PUBLIC_GOOGLE_MAPS_API_KEY in the Vercel dashboard under Project Settings > Environment Variables.
  3. Vercel will automatically deploy the app when you push changes to the main branch.

Usage

  1. Search for Restaurants or Hotels:
  • Choose between "Restaurant" and "Hotel" in the "Place Type" dropdown.
  • Enter the location in the format “City, State” or simply a city name.
  • Click “Search” to retrieve results.
  1. View Results:
  • Listings will show the name, rating, number of reviews, and price level (if available).
  • For Michelin-awarded restaurants, the Michelin badge will be displayed.
  • Click on a listing to view it on Google Maps.
  1. Refine Searches:
  • Click “Show Advanced Options” to access additional filters like search radius, minimum rating, and price level.
  • Adjust filters and click “Search” again to update the results.

Contributing

Contributions are welcome! If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch with a descriptive name
  3. Commit your changes.
  4. Push the changes to your fork.
  5. Submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Acknowledgements

TrueCritic was developed during HackHarvard 2024. Thanks to the event organizers for providing a space to bring this idea to live.


About

TrueCritic: Discover top-rated restaurants and hotels, filtered by quality and industry accolades.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published