Integrate FastAPI with Website, Restructure Project, and Enhance Compatibility #386
+1,265
−440
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
Partially Fixes #374
Description
This pull request focuses on integrating FastAPI with the existing website, restructuring the project for better maintainability, and ensuring seamless compatibility with MongoDB. The updates also include improved documentation and dependency management.
Key Updates
1. Dependency Management
requirements.txt
to include the latest dependencies, ensuring the project runs smoothly.2. Enhanced Project Structure
PROJECT_STRUCTURE.md
to reflect the new organization.3. FastAPI Integration
main.py
inwebsite
folder to serve all HTML pages dynamically:4. Static File Routing:
5. MongoDB Integration:
6. Secure Environment Management:
.env
file support to securely manage sensitive configurations like database URLs.7. Documentation Improvements:
README.md
to include steps for running the website using FastAPI.Testing
Screenshots
Live website:
Recording.2025-01-17.202140.1.mp4
main.py in website
Recording.2025-01-17.233425.mp4
README.md
PROJECT_STRUCTURE.md
Please review the changes and share your feedback. If any additional enhancements or modifications are needed, let me know!
Type of change
Checklist