Closed sweep-ai[bot] closed 5 months ago
This is an automated message generated by Sweep AI.
Hi there! :wave: Thanks for opening a PR. :tada: To get the most out of Senior Dev, please sign up in our Web App, connect your GitHub account, and add/join your organization devansh-shah-11. After that, you will receive code reviews beginning on your next opened PR. :rocket:
PR Feedback (click)
Description
This pull request migrates the database to MongoDB Atlas and creates interoperable functions. It also adds configuration options for using either local MongoDB or MongoDB Atlas.
Summary
get_database_config()
function toAPI/config.py
to retrieve database configuration based on environment variables.from_config()
class method toAPI/database.py
to create aDatabase
instance based on the database configuration.API/route.py
to useDatabase.from_config()
to create theclient
instance.README.md
to include instructions for setting up environment variables for MongoDB Atlas and added a note about the project now supporting both local MongoDB and MongoDB Atlas.Fixes #9.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: