Webapp - peer-network/peer_backend GitHub Wiki

๐ŸŒ WebApp โ€” Peer Network

This page documents the Peer Network WebApp, built with a lightweight stack centered on vanilla JavaScript, HTML, and CSS โ€” optimized for fast, portable access across devices.


๐Ÿ“ฑ Project Overview

  • Developed using HTML5, CSS3, and ES6 JavaScript
  • No frontend framework โ€” built as a lightweight, framework-free PWA
  • Communicates with the backend using GraphQL
  • Backend PHP endpoints assist with HTML routing and caching
  • Responsive across mobile and desktop views

๐Ÿงฑ Tech Stack

Layer Technology
Language JavaScript (ES6+)
Markup & Styling HTML5, CSS3
API Communication GraphQL
Backend Support PHP
State Management LocalStorage

โœ… Implemented Features

  • โœ… User registration and login
  • โœ… Profile view and editing
  • โœ… Post creation and comments
  • โœ… Wallet balance display
  • โœ… Responsive UI across devices

๐Ÿšซ Not Yet Implemented

  • โŒ Token transfer from wallet
  • โŒ Real-time chat (messaging)
  • โŒ Push notifications
  • โŒ Full text search or filters
  • โŒ Referral system on registration

๐Ÿงช Testing

  • Manual testing done in Chrome, Firefox, Safari
  • Basic tests located in tests/
  • End-to-end automation is planned

๐Ÿ“ Project Structure

peer_web_frontend/
โ”œโ”€โ”€ css/                 # Stylesheets
โ”œโ”€โ”€ fonts/               # Font files
โ”œโ”€โ”€ img/                 # Image assets
โ”œโ”€โ”€ js/                  # JavaScript files (API, logic)
โ”œโ”€โ”€ json/                # Static JSON data
โ”œโ”€โ”€ svg/                 # SVG icons
โ”œโ”€โ”€ tests/               # Test files
โ”œโ”€โ”€ .vscode/             # Editor config
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .htaccess
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ cache.php            # PHP caching script
โ”œโ”€โ”€ dashboard.php        # Main dashboard (post feed)
โ”œโ”€โ”€ dashboardheader.html # Header fragment
โ”œโ”€โ”€ error.txt
โ”œโ”€โ”€ favicon.ico
โ”œโ”€โ”€ filter.html
โ”œโ”€โ”€ host.php
โ”œโ”€โ”€ login.php
โ”œโ”€โ”€ meta.php
โ”œโ”€โ”€ newpost.php
โ”œโ”€โ”€ phpheader.php
โ”œโ”€โ”€ phpinfo.php
โ”œโ”€โ”€ profile.html
โ”œโ”€โ”€ register.php
โ”œโ”€โ”€ sw-db.js             # Service worker - DB sync
โ”œโ”€โ”€ sw.js                # Main service worker
โ”œโ”€โ”€ sw_instal.js         # SW install handler
โ”œโ”€โ”€ symbole.html
โ”œโ”€โ”€ test.html
โ”œโ”€โ”€ test.tmp
โ””โ”€โ”€ testHeader.html

๐Ÿ““ Related Pages