{"id":28951213,"url":"https://github.com/lmlk-seal/web-development-server","last_synced_at":"2026-05-05T13:37:49.358Z","repository":{"id":299124815,"uuid":"1002134796","full_name":"LMLK-seal/Web-Development-Server","owner":"LMLK-seal","description":"A lightweight, professional-grade development server with live file watching and hot reload notifications for modern web applications.","archived":false,"fork":false,"pushed_at":"2025-06-14T20:02:39.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-14T20:42:22.298Z","etag":null,"topics":["angular","auto-refresh","cli-tool","cross-platform","developer-tools","development-server","file-watcher","frontend","hot-reload","lightweight","live-reload","local-development","python","react","spa","static-site","vue","web-development","websocket"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LMLK-seal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-14T19:40:37.000Z","updated_at":"2025-06-14T20:02:42.000Z","dependencies_parsed_at":"2025-06-14T20:42:25.241Z","dependency_job_id":"0c4faa9d-eebc-405f-89c6-14748dea37ef","html_url":"https://github.com/LMLK-seal/Web-Development-Server","commit_stats":null,"previous_names":["lmlk-seal/web-development-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LMLK-seal/Web-Development-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FWeb-Development-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FWeb-Development-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FWeb-Development-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FWeb-Development-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LMLK-seal","download_url":"https://codeload.github.com/LMLK-seal/Web-Development-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FWeb-Development-Server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261491898,"owners_count":23166679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","auto-refresh","cli-tool","cross-platform","developer-tools","development-server","file-watcher","frontend","hot-reload","lightweight","live-reload","local-development","python","react","spa","static-site","vue","web-development","websocket"],"created_at":"2025-06-23T14:09:11.743Z","updated_at":"2026-05-05T13:37:49.317Z","avatar_url":"https://github.com/LMLK-seal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Professional Web Development Server\n\nA lightweight, feature-rich development server designed for modern web applications with automatic live reload, anti-caching headers, and SPA (Single Page Application) routing support.\n\n## ✨ Features\n\n- 🔄 **Live Reload** - Automatic browser refresh when files change\n- 🚫 **Anti-Caching** - Prevents browser caching during development\n- 🎯 **SPA Support** - Handles client-side routing for single-page applications\n- ⚡ **Fast \u0026 Lightweight** - Minimal overhead with efficient file watching\n- 🎛️ **Configurable** - Customizable host, port, and directory settings\n- 📁 **Smart Directory Detection** - Automatically detects `dist` and `build` folders\n- 🔧 **Professional Logging** - Clean, informative console output\n\n## 📋 Requirements\n\n- Python 3.6+\n- Required packages (install via `pip install -r requirements.txt`):\n  - `watchdog` - File system monitoring\n  - `websockets` - WebSocket support for live reload\n\n## 🚀 Quick Start\n\n1. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n2. **Run the server:**\n   ```bash\n   python Server.py\n   ```\n\n3. **Or specify a custom directory:**\n   ```bash\n   python Server.py /path/to/your/project/dist\n   ```\n\n## 🎛️ Usage\n\n### Basic Usage\n```bash\n# Serve current directory on default port (3000)\npython Server.py\n\n# Serve specific directory\npython Server.py ./dist\n\n# Custom port\npython Server.py --port 8080\n\n# Custom host\npython Server.py --host 0.0.0.0\n\n# Combined options\npython Server.py ./build --port 8080 --host 0.0.0.0\n```\n\n### Command Line Options\n\n| Option | Short | Default | Description |\n|--------|-------|---------|-------------|\n| `directory` | - | Current directory | Directory to serve |\n| `--port` | `-p` | `3000` | HTTP server port |\n| `--host` | `-H` | `localhost` | Server host address |\n\n## 🏗️ Project Structure\n\nThis server is designed to work with modern web application builds:\n\n```\nyour-project/\n├── dist/                 # Built application files\n│   ├── index.html       # Main HTML file\n│   ├── assets/          # Static assets\n│   │   ├── main.js      # JavaScript bundles\n│   │   ├── style.css    # Stylesheets\n│   │   └── ...\n│   └── ...\n├── Server.py            # This development server\n├── requirements.txt     # Python dependencies\n└── ...\n```\n\n## ⚙️ How It Works\n\n### 🔄 Live Reload System\n- **File Watcher**: Monitors your project directory for changes\n- **WebSocket Connection**: Establishes real-time communication with the browser\n- **Debounced Updates**: Prevents excessive reloads with 300ms delay\n- **Smart Filtering**: Ignores Python files and directories\n\n### 🚫 Anti-Caching Headers\nThe server automatically adds these headers to prevent browser caching:\n```http\nCache-Control: no-store, no-cache, must-revalidate\nPragma: no-cache\nExpires: 0\n```\n\n### 🎯 SPA Routing Support\n- Serves `index.html` for all non-existent routes\n- Perfect for React Router, Vue Router, Angular Router, etc.\n- Maintains clean URLs without hash routing\n\n## 🔧 Configuration\n\n### Default Ports\n- **HTTP Server**: `3000`\n- **WebSocket Server**: `3001`\n\n### Environment Detection\nThe server provides helpful warnings if:\n- `index.html` is not found in the target directory\n- You're not running from a `dist` or `build` folder\n\n## 📊 Server Output\n\nWhen running, you'll see a professional dashboard:\n\n```\n==================================================\n  🚀 Professional Development Server is Running 🚀\n  - HTTP Server: http://localhost:3000\n  - Live Reload:  Enabled\n  - Caching:      Disabled\n\n  Watching for file changes...\n  Press Ctrl+C to stop.\n==================================================\n```\n\n## 🛠️ Development\n\n### Dependencies\n\nDownload the `requirements.txt` file.\n\n\n### Extending the Server\n\nThe server is built with modularity in mind:\n- `DebouncedReloadHandler`: Custom file system event handler\n- `SPAEnabledHandler`: HTTP request handler with SPA support\n- WebSocket server for live reload communication\n\n## 🚨 Troubleshooting\n\n### Common Issues\n\n**Port already in use:**\n```bash\npython Server.py --port 8080\n```\n\n**Permission denied:**\n```bash\n# Use a port \u003e 1024 for non-root users\npython Server.py --port 3000\n```\n\n**Live reload not working:**\n- Check that WebSocket port (3001) is not blocked\n- Ensure your browser supports WebSocket connections\n- Verify that the `index.html` file contains the `\u003c/body\u003e` tag for script injection\n- When still having cache issues try browser-Side Manual Fix: Forcing your browser to ignore its cache for a single request.\n  On Windows/Linux: `Ctrl + Shift + R` or `Ctrl + F5`\n  On Mac: `Cmd + Shift + R`\n\n### Browser Compatibility\n\nThe live reload feature requires WebSocket support:\n- ✅ Chrome 16+\n- ✅ Firefox 11+\n- ✅ Safari 7+\n- ✅ Edge 12+\n\n## 📝 License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n---\n\n**Made with ❤️ for modern web development**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmlk-seal%2Fweb-development-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmlk-seal%2Fweb-development-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmlk-seal%2Fweb-development-server/lists"}