How kalpanag2004/fastnotes works
Project type and purpose
• FastNotes is a full-stack, single-page note-taking web application.
• The backend is built with FastAPI, the frontend with Jinja2 templates, plain HTML/CSS/JS (Bootstrap), and MongoDB Atlas provides persistent storage.
• Users can create, edit, delete, and flag notes as important via a responsive web UI.
File structure
• main.py: entry point—instantiates FastAPI app, mounts routes, connects to DB.
• config/db.py: database connection logic to MongoDB Atlas.
• routes/note.py: REST endpoints (GET, POST, PUT, DELETE) for note operations.
• models/note.py: defines the MongoDB document schema (ODM).
• schemas/note.py: Pydantic models for request/response validation.
• templates/index.html: single HTML view rendered by FastAPI with Jinja2.
• static/script.js & style.css: client-side logic for inline editing & UI styling.
• tutorials/: example/test scripts (not part of production flow).
README for additional insights
• Tech stack table confirms FastAPI, MongoDB Atlas, Jinja2, Bootstrap.
• Deployment on Render indicates a cloud-hosted production environment.
• Modular codebase (routes, models, schemas) suggests an MVC-like separation.