{"id":18355093,"url":"https://github.com/achanandhi-m/python-mongodb","last_synced_at":"2026-05-08T10:33:58.107Z","repository":{"id":245003017,"uuid":"816973817","full_name":"Achanandhi-M/Python-MongoDB","owner":"Achanandhi-M","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-18T18:59:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T02:47:09.946Z","etag":null,"topics":["flask","mongodb","mongodb-atlas","pymongo","python"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Achanandhi-M.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T18:54:42.000Z","updated_at":"2024-06-18T19:02:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"03080059-a7ce-4f95-a3fa-79bc2c9ad927","html_url":"https://github.com/Achanandhi-M/Python-MongoDB","commit_stats":null,"previous_names":["achanandhi-m/python-mongodb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Achanandhi-M/Python-MongoDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2FPython-MongoDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2FPython-MongoDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2FPython-MongoDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2FPython-MongoDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Achanandhi-M","download_url":"https://codeload.github.com/Achanandhi-M/Python-MongoDB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2FPython-MongoDB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32776856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","mongodb","mongodb-atlas","pymongo","python"],"created_at":"2024-11-05T22:05:57.782Z","updated_at":"2026-05-08T10:33:58.088Z","avatar_url":"https://github.com/Achanandhi-M.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Flask MongoDB Application\n\nThis is a simple Flask application that connects to a MongoDB Atlas cluster and allows users to submit their information through a form. The submitted data is then stored in the MongoDB database.\n\n## Features\n\n- User can submit their name, email, and password through a form.\n- The data is stored in a MongoDB database.\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Python 3.x installed on your local machine.\n- MongoDB Atlas account with a cluster and database set up.\n- Internet connection to connect to the MongoDB Atlas cluster.\n\n## Installation\n\n1. **Clone the repository:**\n\n```sh\ngit clone https://github.com/yourusername/your-repo-name.git\ncd your-repo-name\n```\n\n2. **Create and activate a virtual environment:**\n\n```sh\npython3 -m venv venv\nsource venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n```\n\n3. **Install the required packages:**\n\n```sh\npip install -r requirements.txt\n```\n\n4. **Set up the environment variable for MongoDB URI:**\n\n```sh\nexport MONGODB_URI=\"mongodb+srv://yourusername:yourpassword@cluster0.mongodb.net/?retryWrites=true\u0026w=majority\u0026appName=yourAppName\"\n```\n\nOn Windows, use:\n\n```sh\nset MONGODB_URI=\"mongodb+srv://yourusername:yourpassword@cluster0.mongodb.net/?retryWrites=true\u0026w=majority\u0026appName=yourAppName\"\n```\n\n## Running the Application\n\nTo run the application, execute the following command:\n\n```sh\npython mongo.py\n```\n\nThe application will be accessible at `http://localhost:5000`.\n\n## Project Structure\n\n```plaintext\n.\n├── static\n│   └── styles.css          # Your static files (CSS, JS, images)\n├── templates\n│   ├── index.html          # The form for user input\n│   └── response.html       # The response page after form submission\n├── mongo.py                # The main application file\n├── test.py                 # The MongoDB connection test file\n├── requirements.txt        # Python dependencies\n└── README.md               # This file\n```\n\n## Usage\n\n1. Navigate to `http://localhost:5000`.\n2. Fill out the form with your name, email, and password.\n3. Click the submit button.\n4. If all fields are filled out correctly, you will be redirected to the response page.\n\n## Contributing\n\nTo contribute to this project, please follow these steps:\n\n1. Fork this repository.\n2. Create a new branch: `git checkout -b feature/your-feature-name`.\n3. Make your changes and commit them: `git commit -m 'Add some feature'`.\n4. Push to the original branch: `git push origin feature/your-feature-name`.\n5. Create a pull request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Contact\n\nIf you want to contact me, you can reach me at [achanandhi.m@gmail.com](mailto:achanandhi.m@gmail.com).\n```\n\n### Instructions\n\n1. **Replace placeholders** such as `yourusername`, `your-repo-name`, `yourpassword`, `yourAppName`, and `your-email@example.com` with your actual information.\n2. **Create a `requirements.txt` file** by running `pip freeze \u003e requirements.txt` in your virtual environment.\n3. **Push to GitHub**:\n\n```sh\ngit add .\ngit commit -m \"Initial commit\"\ngit push origin main\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachanandhi-m%2Fpython-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachanandhi-m%2Fpython-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachanandhi-m%2Fpython-mongodb/lists"}