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

Join us at AWS re:Invent 2024! Learn how to use MongoDB for AI use cases.
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

Build a CRUD API With MongoDB, Typescript, Express, Prisma, and Zod


Sep 04, 2024 | 10 min read
Tutorial

NextAuth.js Authentication With MongoDB


Aug 30, 2024 | 10 min read
Quickstart

Getting Started With Bun and MongoDB


Jul 19, 2024 | 9 min read
Tutorial

Type Safety With Prisma & MongoDB


Aug 09, 2024 | 4 min read
Technologies Used
Languages
Products
Table of Contents
  • Creators