website time lmfao
1-- Overall Architecture
Your website will be built as a three-tier system: the frontend (what users see), the backend (your Django server and APIs), and the data layer (MySQL and external services). Visitors interact with your store through a web browser or mobile device. The browser talks to your NGINX web server, which routes requests to Django. Django runs your Python logic, handles authentication, and communicates with MySQL to read and write account or app data. Payments flow through PayPal-s API, which lives outside your server and handles all card security.
2-- The Web Frontend
Your frontend is the public-facing part of your store - HTML, CSS, and JavaScript. It lists your apps (Nutrition, Emojis, Paid Filters, Media Editor, Horoscopes, Charts, and your Video Game) and lets users register, log in, view profiles, and make purchases. When a user clicks -Buy,- your JavaScript code makes an API call (using fetch() or Axios) to your Django REST API endpoint such as /api/create-order/. This frontend never touches the database directly; it always goes through Django-s secure APIs.
3-- Django Application Layer
Your Django server is the heart of the system. It defines URL routes, business logic, and API endpoints using Django REST Framework. Django authenticates users, manages sessions, and connects to your MySQL database through Django-s ORM. When an API request arrives, Django checks credentials, reads or writes data, and formats a JSON response for the frontend. Django also contains app-specific logic - for example, retrieving a user-s Horoscope data, storing Media Editor filters, or managing saved game scores.