{"id":23478192,"url":"https://github.com/suraj-k-gupta/fastapi-notes","last_synced_at":"2026-04-08T20:03:35.124Z","repository":{"id":259545724,"uuid":"878179999","full_name":"SURAJ-K-GUPTA/fastapi-notes","owner":"SURAJ-K-GUPTA","description":"A FastAPI-based note-taking application deployed on Vercel. Features include adding, viewing, and managing notes with MongoDB for data storage.","archived":false,"fork":false,"pushed_at":"2024-10-25T12:45:48.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T17:59:26.935Z","etag":null,"topics":["api","fastapi","mongodb","note-taking","python","vercel"],"latest_commit_sha":null,"homepage":"https://fastapi-notes-pi.vercel.app","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/SURAJ-K-GUPTA.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-10-24T22:56:23.000Z","updated_at":"2024-11-12T09:25:24.000Z","dependencies_parsed_at":"2024-10-26T11:51:47.917Z","dependency_job_id":"6aabf0bd-5f88-464b-a763-38c8c80b506f","html_url":"https://github.com/SURAJ-K-GUPTA/fastapi-notes","commit_stats":null,"previous_names":["suraj-k-gupta/fastapi-notes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SURAJ-K-GUPTA/fastapi-notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SURAJ-K-GUPTA%2Ffastapi-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SURAJ-K-GUPTA%2Ffastapi-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SURAJ-K-GUPTA%2Ffastapi-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SURAJ-K-GUPTA%2Ffastapi-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SURAJ-K-GUPTA","download_url":"https://codeload.github.com/SURAJ-K-GUPTA/fastapi-notes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SURAJ-K-GUPTA%2Ffastapi-notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","fastapi","mongodb","note-taking","python","vercel"],"created_at":"2024-12-24T19:16:59.077Z","updated_at":"2026-04-08T20:03:35.090Z","avatar_url":"https://github.com/SURAJ-K-GUPTA.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# FastAPI Note Add Project\n\nThis project is a simple note-taking app built with **FastAPI** where users can add notes. It uses **MongoDB** as the database.\n\n## Features\n\n- Add new notes with a title, description, and important flag.\n- FastAPI as the backend framework.\n- MongoDB for note storage.\n- Dynamic page updates.\n\n## Requirements\n\nBefore you begin, make sure you have the following installed on your system:\n\n- Python 3.7+\n- MongoDB (local or hosted)\n- pip (Python package installer)\n\n## Setup\n\n### Step 1: Clone the Repository\n\nFirst, clone the repository to your local machine.\n\n```bash\ngit clone https://github.com/SURAJ-K-GUPTA/fastapi-notes.git\ncd fastapi-notes\n```\n\n### Step 2: Set Up a Virtual Environment\n\nIt's recommended to use a virtual environment to manage dependencies.\n\nOn macOS/Linux:\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nOn Windows:\n\n```bash\npython -m venv venv\nvenv\\Scripts\\activate\n```\n\n### Step 3: Install Dependencies\n\nOnce inside the virtual environment, install the project dependencies using the `requirements.txt` file.\n\n```bash\npip install -r requirements.txt\n```\n\n### Step 4: Set Up the `.env` File\n\nCreate a `.env` file in the root of the project. Inside this file, add your MongoDB connection URI:\n\n```env\nMONGO_URI=mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@cluster0.mongodb.net/\u003cdbname\u003e?retryWrites=true\u0026w=majority\n```\n\nMake sure to replace `\u003cusername\u003e`, `\u003cpassword\u003e`, and `\u003cdbname\u003e` with your MongoDB credentials.\n\n### Step 5: Database Setup\n\nYou need a MongoDB database to store notes. Either:\n\n- Use MongoDB Atlas (a cloud MongoDB solution) or\n- Run MongoDB locally.\n\nCreate a collection named `notes` in your MongoDB database.\n\n### Step 6: Running the Application\n\nTo run the FastAPI app, use `uvicorn`. Run the following command:\n\n```bash\nuvicorn app:app --reload\n```\n\nThe application should now be running at:\n\n```bash\nhttp://127.0.0.1:8000\n```\n\n## Project Structure\n\n```bash\nfast-api-note-add/\n├── api/\n│   └── app.py          # Main FastAPI application file\n├── db.py               # MongoDB connection configuration\n├── templates/          # HTML templates for rendering\n├── static/             # Static files (CSS, JS)\n├── .env                # Environment variables (Mongo URI)\n├── requirements.txt    # Project dependencies\n└── README.md           # This README file\n```\n\n## Routes\n\n- **GET /**: Display the form to add notes and show existing notes.\n- **POST /**: Add a new note to the database.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-k-gupta%2Ffastapi-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuraj-k-gupta%2Ffastapi-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-k-gupta%2Ffastapi-notes/lists"}