DEV Community

zait
zait

Posted on

MongoDB Atlas Hackathon 2022 on DEV

What I built

This application allows you to see the trends of Google indicating the country.

Category Submission:

  • Real Time

App Link

https://mongoogletrends.netlify.app/

Screenshots

Image description

Description

This application allows you to see the trends of Google indicating the country.

Link to Source Code

https://github.com/zhou1925/hackathon-mongodb-atlas-fanm

Permissive License

MIT

Background

I wanted to learn something new and make a simple app. I saw the FARM stack and the Real Time category. I learned how to integrate MongoDB Atlas and FastAPI. the integration was fast and easy! So I said why not an application with a button? Then it occurred to me to consume some RSS Feed and Google Trends was my goal.

How I built it

FastAPI works together with Celery and uses RabbitMQ as a message broker. FastAPI is in charge of receiving the client's requests and sending them to the processing queue. The result of each task creates items in MongoDB Atlas and the changes are reflected in the interface using Change Streams.

Image description

Additional Resources/Info

https://www.mongodb.com/developer/products/mongodb/real-time-data-javascript/ https://www.mongodb.com/developer/languages/python/farm-stack-fastapi-react-mongodb https://github.com/mongodb-developer/FARM-Intro/tree/main/backend https://motor.readthedocs.io/en/stable/tutorial-asyncio.html#tutorial-prerequisites https://fastapi.tiangolo.com/tutorial/first-steps/ https://pymongo.readthedocs.io/en/stable/tutorial.html https://fastapi.tiangolo.com/tutorial/cors/

Top comments (0)