https://github.com/pilot2254/raspi5-web
A website hosted locally on my raspberry pi5
https://github.com/pilot2254/raspi5-web
arm raspberry-pi server vite website
Last synced: 12 months ago
JSON representation
A website hosted locally on my raspberry pi5
- Host: GitHub
- URL: https://github.com/pilot2254/raspi5-web
- Owner: pilot2254
- License: mit
- Created: 2025-07-02T16:12:01.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-02T17:03:09.000Z (12 months ago)
- Last Synced: 2025-07-02T17:28:35.461Z (12 months ago)
- Topics: arm, raspberry-pi, server, vite, website
- Language: CSS
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raspberry Pi Web Hosting Template
A simple template for hosting websites locally on Raspberry Pi, accessible from other devices on your network.
## Features
- Plain HTML/CSS website
- Vite development server
- Network-accessible configuration
- Lightweight and fast
## Quick Setup
### 1. Clone and Install
```bash
git clone https://github.com/pilot2254/raspi5-web.git
cd raspi5-web
npm install
```
### 2. Start Development Server
```bash
npm run dev
```
### 3. Access from Network
- Find your Pi's IP: `hostname -I`
- Access from any device: `http://[PI_IP_ADDRESS]:5173`
## Configuration
The template is pre-configured to accept connections from all network interfaces:
- **Development**: `npm run dev` (port 5173)
- **Production preview**: `npm run preview` (port 4173)
- **Build**: `npm run build`
## Network Access
The `vite.config.js` and `package.json` are configured with:
- `host: '0.0.0.0'` - Binds to all network interfaces
- Default ports: 5173 (dev), 4173 (preview)
## Customization
1. Edit `index.html` for your content
2. Modify `style.css` for styling
3. Add assets to the project root
4. Update `package.json` name and details
## Production Deployment
For production use:
```bash
npm run build
npm run preview
```
Or serve the `dist` folder with any static file server.
## Requirements
- Node.js 16+
- Raspberry Pi with network connection
- Devices on same network for access
## License
MIT License - see LICENSE file for details.