Introduction to Web Development and E-commerce

Université de Toulon

LIS UMR CNRS 7020

2026-10-05

Web Development for E-commerce

  • Web Development:
    • The process of creating and maintaining websites and web applications.
    • Involves a combination of front-end (client-side) and back-end (server-side) development.
  • E-commerce Web Development:
    • Focuses specifically on building online stores and platforms for buying and selling products and services.
    • Integrates various functionalities such as product catalogs, shopping carts, payment gateways, and user accounts.

E-commerce Models and Technical Examples

B2B (Business-to-Business)

  • Businesses sell products or services to other businesses.
  • Technical Aspects:
    • Use of APIs for seamless integration with client systems.
    • Secure transactions and data handling.
  • Examples:
    • Alibaba: Uses robust search algorithms and data analytics.
    • Amazon Business: Employs scalable cloud infrastructure (AWS).

B2C (Business-to-Consumer)

  • Businesses sell products or services directly to consumers.
  • Technical Aspects:
    • User-friendly interfaces and responsive design.
    • Secure payment gateways and personalized recommendations.
  • Examples:
    • Amazon: Uses machine learning for personalized recommendations.
    • eBay: Implements real-time bidding systems.

C2C (Consumer-to-Consumer)

  • Platforms enable consumers to sell to each other.
  • Technical Aspects:
    • User authentication and secure payment processing.
    • Rating and review systems to build trust.
  • Examples:
    • eBay: Uses auction algorithms and secure payment systems.

Technical Focus for E-commerce

  • User Experience:
    • Ensures that e-commerce sites are user-friendly, visually appealing, and functional across all devices.
    • Leads to higher customer satisfaction and increased sales.
  • Performance and Scalability:
    • Optimizes site performance to handle high traffic and large volumes of transactions.
    • Ensures that the platform can scale as the business grows.
  • Security:
    • Implements security measures to protect sensitive customer data and prevent fraud.
    • Ensures compliance with industry standards and regulations.

Key Components

  • Front-End Development:
    • HTML (HyperText Markup Language): Structures the content of e-commerce websites.
    • CSS (Cascading Style Sheets): Styles the visual presentation of web pages.
    • JavaScript: Adds interactivity and dynamic features to enhance user experience.
  • Back-End Development:
    • Server-Side Languages (e.g., PHP, Node.js): Handle server logic, database interactions, and business processes.
    • Databases (e.g., MySQL, MongoDB): Store and manage product information, user data, and transaction records.
    • APIs (Application Programming Interfaces): Enable integration with third-party services like payment gateways and shipping providers.

Why an E-commerce Generalist should know web languages?

  • Improved Communication:
    • Understanding web languages helps in better communication with developers and technical teams.
    • Facilitates clearer requirements and more effective collaboration on projects.
  • Enhanced Problem-Solving:
    • Ability to identify and troubleshoot basic issues on e-commerce sites.
    • Helps in making informed decisions about website improvements and optimizations.
  • Competitive Advantage:
    • Knowledge of web languages provides a competitive edge in the job market.
    • Enables e-commerce generalists to contribute more effectively to the development and maintenance of online stores.
  • Better User Experience:
    • Ensures that e-commerce sites are user-friendly, visually appealing, and functional across all devices.
    • Leads to higher customer satisfaction and increased sales.

History of the World Wide Web (WWW)

  • 1989 - Proposal:
    • Tim Berners-Lee proposes the concept of the WWW at CERN.
  • 1990 - First Website:
    • First website (info.cern.ch) created by Tim Berners-Lee.
  • 1991 - Public Release:
    • WWW made available to the public.
  • 1993 - Mosaic Browser:
    • Mosaic browser released, making the web more accessible.
  • 1994 - Netscape Navigator:
    • Netscape Navigator browser launched, popularizing the web.
  • 1995 - Commercialization:
    • Rapid growth of commercial websites (e.g., Amazon, eBay).
  • 2000s - Web 2.0:
    • Emergence of user-generated content and social media.
  • 2010s - Mobile Web:
    • Rise of smartphones and responsive web design.
  • 2020s - Modern Web:
    • Advancements in PWAs, SPAs, and WebAssembly.

The Internet vs. the World Wide Web

The World Wide Web (WWW) is a global system of interconnected documents and resources accessed through the internet.

  • Global System: The web spans the entire world, connecting users and resources across geographical boundaries.
  • Interconnected Documents and Resources: The web is not just websites, but also includes multimedia content, applications, and other digital assets.
  • Hypertext Links: Web pages are linked together using hyperlinks, allowing users to navigate seamlessly between information.
  • Accessed Through the Internet: The web relies on the underlying infrastructure of the internet for communication and data transfer.

The role of Front-end Dev. in E-commerce

  • Customer Experience and Engagement: A well-designed website with intuitive navigation and engaging content can significantly improve the customer experience.
  • Online Transactions and Payments: Web development is essential for creating secure and reliable online payment systems.
  • Marketing and Branding: Web development allows businesses to create a strong online presence, build brand awareness, and reach their target audience.
  • Data Collection and Analysis: Web development tools can be used to track user behavior, collect data, and analyze customer preferences.

The Role of Back-End Development

  • Back-end development handles the server-side logic of a web application. It involves:
    • Data storage and management: Interacting with databases to store and retrieve data.
    • Business logic: Implementing the rules and processes that govern the application’s behavior.
    • Server configuration: Setting up and managing web servers to host the application.
  • Back-end languages and frameworks include:
    • Programming languages: Python, Ruby, Java, PHP, Node.js
    • Frameworks: Django, Ruby on Rails, Spring Boot, Express.js

Note: While PHP and JavaScript are both popular programming languages, they have different strengths and use cases:

  • PHP: A general-purpose server-side scripting language widely used for web development. It’s well-suited for building dynamic websites and web applications.
  • Node.js: A JavaScript runtime environment that allows you to run JavaScript code on the server. It’s gaining popularity for building scalable and real-time applications.

Client / Server Architecture

Web Browser

  • A software application that interprets and displays web pages.
  • Examples: Chrome, Firefox, Safari, Edge
  • Functionality:
    • Fetches web pages from servers based on URLs.
    • Renders HTML, CSS, and JavaScript to create the visual interface.
    • Handles user interactions and navigation.

Web Server

  • A computer system that stores and delivers web pages and other web content.
  • Examples: Apache, Nginx, IIS
  • Functionality:
    • Receives HTTP requests from browsers.
    • Processes requests and retrieves the requested content from storage.
    • Sends the content back to the browser as an HTTP response.

Introduction to HTTP Protocol

  • What is HTTP?
    • HTTP (HyperText Transfer Protocol) is the foundation of data communication on the web.
    • Used for transmitting web pages and other resources.
  • How HTTP Works:
    • Request-Response Model:
      • Client (Browser) sends an HTTP request to the server.
      • Server processes the request and sends back an HTTP response.
  • Common HTTP Methods:
    • GET: Requests data from a server (e.g., loading a web page).
    • POST: Submits data to a server (e.g., submitting a form).
  • HTTP Status Codes:
    • 200 OK: The request was successful.
    • 404 Not Found: The requested resource could not be found.
    • 500 Internal Server Error: The server encountered an error.
  • Why HTTP Matters:
    • Foundation of the Web: Enables communication between browsers and servers.
    • User Experience: Ensures web pages load and function correctly.
  • Conclusion:
    • Understanding HTTP is essential for grasping how the web works, making it a fundamental concept in web development and e-commerce.

Sequence

sequenceDiagram participant Browser participant Web Server

Browser->>Web Server: Sends HTTP GET request for URL
Web Server->>Web Server: Processes request, retrieves content
Web Server-->>Browser: Sends HTTP response with content

Browser->>Web Server: Sends HTTP POST request with form data
Web Server->>Web Server: Processes request, updates data
Web Server-->>Browser: Sends HTTP response with success message

Browser->>Web Server: Sends HTTP request for image
Web Server->>Web Server: Retrieves image from storage
Web Server-->>Browser: Sends HTTP response with image