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
- ๐ป Clients
- ๐ค Android
- ๐ iOS
- ๐ Home
- ๐ฌ GraphQL Schema Overview