Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

Introducing MongoDB 8.0, the fastest MongoDB ever!
MongoDB Developer
TypeScript
plus
Sign in to follow topics
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Languageschevron-right
TypeScriptchevron-right

Trends Analyser

Rita Rodrigues1 min read • Published May 24, 2022 • Updated Sep 11, 2024
AtlasJavaScriptTypeScript
FULL APPLICATION
Facebook Icontwitter iconlinkedin icon
Rate this code example
star-empty
star-empty
star-empty
star-empty
star-empty
social-githubView Code

Creators

Osama Bin Junaid contributed this project.

About the Project

The project uses the Twitter API to fetch realtime trends data and save it into MongoDB for later analysis.

Inspiration

In today's world, it's very hard to keep up with everything that's happening around us. Twitter is one of the first places where things gets reported so my motive was to build an application through which one can see all trends at one place, and also why something is trending (trying to solve this one now).

Why MongoDB?

I used MongoDB because of its document nature. I can directly save my JSON objects without breaking down into tables. It's also easy to design schemas and their relationships using MongoDB.

How it works

Its works by repeatedly invoking eight serverless functions on ibmcloud at 15-minute interval. These functions call the Twitter API to get the data, and do a little transformation before saving the data to MongoDB.
The back end then serves the data to the react front end.

Facebook Icontwitter iconlinkedin icon
Rate this code example
star-empty
star-empty
star-empty
star-empty
star-empty
Related
Tutorial

Instant GraphQL APIs for MongoDB with Grafbase


Oct 12, 2023 | 7 min read
Code Example

myLeG


Jul 07, 2022 | 1 min read
Quickstart

Getting Started With Deno & MongoDB


Sep 09, 2024 | 12 min read
Tutorial

NextAuth.js Authentication With MongoDB


Aug 30, 2024 | 10 min read
Technologies Used
Languages
Products
Table of Contents
  • Creators