How sulemaniftikhar/web-assignment works
Project type and purpose
• From the README (“Web Programming Assignment… academic project”) and the file tree, this is a static, multi‐page web application.
• There is no server‐side code or API—just static HTML, CSS, JavaScript, a JSON data file, and assets (images + Bootstrap library).
File structure
• Top level:
• index.html, login-signup.html, support.html → presentation pages
• anime.css, chatbox.css, login-signup.css, styles.css → custom styles
• scripts.js, login-signup.js → custom client-side logic
• data.json → local data source
• bootstrap/ → front-end framework assets (CSS & JS)
• images/ → static media assets
• No “src/” or “backend” folders—this is a purely front-end static site.
• No build scripts or server configs—served as-is by any static web server.
README for additional insights
• The README simply states that this is an academic web assignment that will be updated.
a. Main components
• Client Browser (User Interface)
• Static File Server (could be Nginx, Apache, or GitHub Pages)
• Static Assets:
• HTML pages
• CSS files (custom + Bootstrap)
• JavaScript files (custom + bootstrap.bundle.js)
• data.json (data source)
• images/
b. Relationships & interactions
• Browser → HTTP GET → Server for HTML pages
• HTML pages reference CSS & JS assets → Browser fetches them
• scripts.js (or login-signup.js) dynamically fetches data.json via AJAX/Fetch
• Browser renders data-driven components (e.g., chatbox, anime listings)
c. Architectural patterns & design principles
• Separation of concerns:
• Content & structure in HTML
• Presentation in CSS (including Bootstrap)
• Behavior in JavaScript
• Client-driven data fetch from a local JSON file
d. Relevant technologies & libraries
• HTML5, CSS3, JavaScript (ES6)
• Bootstrap (grid, components, utilities)
• Fetch API or XMLHttpRequest for data.json
Essential details
• Multi‐page structure (index, login-signup, support)
• Style separation (custom CSS vs. Bootstrap)
• Behavior separation (custom JS vs. Bootstrap JS)
• Data flow from data.json into the UI
• Avoid unnecessary components—keep it focused on client-side rendering of static assets.