Deployed here:
https://reidjs.github.io/venmo-search-frontend/
Uses MongoDB's Atlas Search to search hundreds of thousands of Venmo transactions. Made for dev.to's mongodb hackathon
I built this to explore using MongoDB's Atlas Search as an alternative to ElasticSearch for full text search. I used Venmo data because
- it's public
- users are forced to leave a text "comment" for every transaction
Production
- Go to https://reidjs.github.io/venmo-search-frontend/
- Type a query
Local Development
- Start backend https://github.com/reidjs/venmo-search-server
- Start frontend with
npm run dev
- Open browser to localhost:8000
Venmo dataset from https://github.com/sa7mon/venmo-data
- Out of the 7,000,000 transactions, I only used about 342,000 venmo transactions (free tier Mongo Atlas)
- To decide which transactions went into the database, I 'ranked' each transaction according to how long the comment was. Longer comment = more likely to be in database.
How to load in BSON data to atlas:
mongorestore --uri mongodb+srv://[USERNAME]:[PASSWORD]@cluster0.abbj1.mongodb.net/[DATABASE] venmo.bson
How to Load in JSON data to atlas:
mongoimport --uri "mongodb+srv://[USERNAME]:[PASSWORD]@cluster0.abbj1.mongodb.net/[DATABASE]" --collection venmo --drop --file ./atlas_export.json --jsonArray