Giter VIP home page Giter VIP logo

google-globe-trends's Introduction

๐ŸŒŽ Google Globe Trends

Create beautiful and interactive Google Trends globe visualizations with ease.

Overview

image

google-globe-trends is a JAMStack application that visualizes Google Trends with an interactive React + ThreeJS globe. Data is fetched during build time using the google-trends-api package. Globe visualizations are rendered using the react-globe package.

This project is inspired by the wonderful #metoorising project. With most interactive features supported by react-globe, the project aims to simplify building beautiful globe visualizations with Google Trends datasets.

Deploy an Instance

Deploy with Netlify

To deploy your personal Google Globe Trends instance, click on the Deploy to Netlify button below. You will be prompted to connect this instance to a Github repo. Follow through the steps and you should be able to view a working example with your own Netlify URL!

Deploy to Netlify

Configurations

To configure your instance, you should clone the Github repo and test locally:

git clone [email protected]:MY_USER_NAME/MY_GOOGLE_GLOBE_TRENDS_INSTANCE.git

cd MY_GOOGLE_GLOBE_TRENDS_INSTANCE
npm install && npm start

You can configure the globe visuals (e.g. globe texture, glow color, zoom behaviors) by editing the config.js file. For more resources on how to configure these options, please refer to the react-globe docs.

If you would like to render the Google Trends of another keyword, simply change the keyword field of the config file. To apply changes to the data, run the npm run build:data command.

You should now be able to test your changes locally with the npm start command. If they look good, you can commit the changes to your Github repo, and Netlify will redeploy the instance with these updates automatically!

Automate Data Updates

A really cool thing about Netlify is the ability to use build hooks. This provides you with a unique URL that you can use to trigger rebuilding the site. You can find this in the Build Hooks section for your Netlify project (e.g. https://app.netlify.com/sites/MY_GOOGLE_GLOBE_TRENDS_INSTANCE/settings/deploys). Go ahead and create a build hook and give it a meaningful name (e.g. 'daily-deploy').

You can now ping this build hook URL to rebuild the site. Services such as IFTTT or Zapier provide simple ways to automate and schedule simple jobs that you can use to hit the build hook URL. Below is an example of setting up an IFTTT applet that is scheduled to hit the build hook URL every midnight.

image

Author's Notes

Google Globe Trends is primarily meant to be an artistic and UI-focused experience to explore visualizing Google Trends data with an interactive React/ThreeJS globe. As a personal project, I wanted to learn how to abstract features and visual experiences in the metoorising project into modular components. I also wanted to explore JAMStack techniques of automating and scheduling data updates at build time with IFTTT and web hooks. This project will probably not be actively updated but can serve as a template for other projects to draw ideas from!

google-globe-trends's People

Contributors

chrisrzhou avatar dependabot[bot] avatar

Watchers

Vitaliy Stepanov 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.