Enhance deployment, fix APIs, and update UI components#871
Open
Mohitranag18 wants to merge 147 commits intoFOSSEE:masterfrom
Open
Enhance deployment, fix APIs, and update UI components#871Mohitranag18 wants to merge 147 commits intoFOSSEE:masterfrom
Mohitranag18 wants to merge 147 commits intoFOSSEE:masterfrom
Conversation
final bug & ui fixes
teacher side few ui changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
This PR is a comprehensive modernization and re-architecture of the Yaksh Online Test Platform, with changes spanning deployment, infrastructure-as-code, API backend (Django + REST), business domain logic, and a full rewrite of the React frontend (including component-level and integration tests). It introduces robust deployment automation, deepens API feature coverage, reorganizes REST endpoints, brings testable modern React UI, and provides exhaustive developer/operator documentation.
1. Deployment & DevOps
Patterns and Practices
.env/environment variables.render.yamldescribes the deployment blueprint. All infra steps are tracked and repeatable.COMPLETE_DEPLOYMENT_GUIDE.md,DEPLOYMENT_QUICKSTART.md, andLOCAL_SETUP_GUIDE.mdprovide step-by-step onboarding/deployment for local/dev/staging/prod.Breakdown
Backend (Render.com)
gunicornfor WSGI serving,whitenoisefor static files, anddj-database-urlfor flexible DB parsing.settings.pyandonline_test/__init__.py).Frontend (Vercel)
VITE_API_URLenv variable points to backend..enventries and descriptive doc instructions.Database
Environment File Examples
.env.examplewith every key explained (DB, Redis, Email, Social logins).2. API & Backend Changes
Design Patterns & Refactoring
Serializer Expansion (Django REST)
API Views (CBV & FBV)
QuizList,QuestionDetail, etc.)api/urls.py(over 250 detailed routes).API URL Design
Test Coverage
api/tests.py).Notable Backend Enhancements
3. Frontend/UI Engineering (React + Vite)
Modern React Design Patterns
Atomic/Flexible Componentization:
Routing
State and Data Flow
Theme and Style
Testing
Key UI Features
frontend/README.mdfor component/library standards and extension.4. Testing & Quality
api/tests.pycovers user, permissions, roles, and all business invariants.5. Patterns, Principles & Security
6. Documentation Added
7. Summary Table: File/Module Highlights
.env.examplerender.yamlapi/serializers.pyapi/views.pyapi/urls.pyapi/tests.pyfrontend/frontend/src/__tests__COMPLETE_DEPLOYMENT_GUIDE.md8. Notable Best Practices Observed
9. Reviewer Notes
api/serializers.py,api/views.py,api/urls.py,/frontend/src/,/frontend/src/__tests__/, deployment guides.