Files
gd-list/README.md
T
miles d29719131c Remove admin/server pages; consolidate live list
Delete admelist.html and serverlist.html and update the site to use lists.html as the main live-backed list. README.md was edited to reflect the consolidation (references to serverlist/admelist replaced with lists.html and roulette.html, wording adjusted). lists.html: remove admin/server links, change page title to “FEDL List”, and drop the level column in the table. app.js: update status text to mention the live server list, remove admin editor code and serverlist-specific branches, simplify list rendering (remove level column output) and wire live updates to listPage.applyItems. Miscellaneous: remove unused escapeAttr helper. Overall this simplifies the UI by consolidating live functionality into lists.html and removing the separate admin/server pages.
2026-03-31 19:00:35 -05:00

119 lines
2.4 KiB
Markdown

# GD FEDL
A Geometry Dash FEDL-style website with a live server-backed main list.
It includes:
- a home page
- a main list page
- a players page
- a rules page
## Project Files
- `index.html` - home page
- `lists.html` - main live list view
- `players.html` - player manager
- `rules.html` - submission rules and mod guidelines
- `app.js` - client-side logic
- `styles.css` - site styling
- `data.txt` - static fallback list data
- `server/data.txt` - live server list data
- `server/server.js` - Node.js server for the live list
- `start-server.command` - one-click launcher for macOS
- `server/LINUX_SERVICE_SETUP.txt` - Linux `systemd` setup notes
## Data Format
Both `data.txt` and `server/data.txt` use the same format:
```txt
category|position|title|url
```
Example:
```txt
new|1|Flamewall|https://youtu.be/x4Io4zkWVRw
```
## Pages
- `lists.html` is the main live list page.
- `roulette.html` uses the same live server-backed list.
## Fallback Order
The live list tries these in order:
1. `/api/list`
2. `server/data.txt`
3. `data.txt`
That means `lists.html` can still show data even if the live API is down.
## Running The Static Site
If you only want the static pages, you can run a simple file server:
```bash
python3 -m http.server 8000
```
Then open:
```txt
http://localhost:8000
```
## Running The Live Server
The live list uses the Node server:
```bash
node server/server.js
```
Or to allow other devices on your network to connect:
```bash
HOST=0.0.0.0 PORT=3000 node server/server.js
```
Then open:
```txt
http://localhost:3000/lists.html
http://localhost:3000/roulette.html
```
On macOS you can also use:
```txt
start-server.command
```
## Hosting On Another Device
If you want one device to host the live list for other devices:
1. Run the server with `HOST=0.0.0.0`.
2. Open or forward port `3000`.
3. Visit `http://YOUR-IP:3000/lists.html` or `http://YOUR-IP:3000/roulette.html`.
If you already have router port forwarding set up, point it to the machine running `server/server.js`.
## Linux Service
For running the Node server automatically on boot on Linux, see:
`server/LINUX_SERVICE_SETUP.txt`
## Notes
- Player data is stored in the browser with `localStorage`
- The players list is local to each browser/device
- The live list data is stored in `server/data.txt`
- The static fallback list data is stored in `data.txt`
- The project does not need a build step