How ajithkumart445/portfolio works
Project type and purpose
• This is a full-stack web application built with Django (Python) that serves as a personal portfolio site.
• It provides pages for index, projects, blogs, certificates, resumes, and handles media uploads.
File structure
Top-level:
• manage.py – entry point for Django commands
• db.sqlite3 – development database
• package.json / node_modules / tailwind.config.js / postcss.config.js – Node.js-based build toolchain for compiling Tailwind CSS
• requirements.txt – Python dependencies
• uploads/ – user-uploaded media files
Directories:
• portfolio/ – Django “project” containing settings.py, URL router, ASGI/WSGI entrypoints
• home/ – a Django “app” containing:
– models.py (data layer)
– views.py & urls.py (controllers/routes)
– templates/ (HTML presentation layer)
– static/ (precompiled assets: CSS, JS, images, resume PDF)
– migrations/ (database schema evolution)
README
• Bare-bones, only a title. All insights must come from the file layout and naming conventions.
a. Main components
1. Client (Browser)
2. Static Asset Server (Django’s collectstatic or CDN)
3. Django Application Server (WSGI/ASGI)
4. SQLite Database
5. Node.js Build Pipeline (Tailwind CSS / PostCSS)
6. File Storage (uploads folder)
b. Relationships & interactions
• Browser → HTTP requests → Django App Server
• Django App Server ↔ ORM → SQLite Database
• Django App Server → serves dynamic pages (templates)
• Browser → GET static assets (CSS/JS/images) from Static Asset Server
• Node Build Pipeline → produces CSS/JS in home/static → collected → served
• Browser → POST file upload → Django → saves to uploads/ → served back as media
c. Architectural patterns & design principles
• Django’s MVT (Model-View-Template) pattern
• Clear separation of concerns:
• Models for data
• Views for business logic + routing
• Templates for presentation
• Static assets managed separately via a build tool
• Configuration-as-code: tailwind.config.js, postcss.config.js
d. Key technologies / frameworks / libraries
• Python 3.x, Django
• SQLite (dev DB)
• Node.js, npm, Tailwind CSS, PostCSS
• HTML5, CSS3, JavaScript