Skip to content

Frontend to display the DoubleZero RFCs from Github

Notifications You must be signed in to change notification settings

schmiatz/doublezero-rfcs

Repository files navigation

DoubleZero RFCs Dashboard

A dashboard for viewing DoubleZero Request for Comments (RFC) documents. Built with React, TypeScript, Vite, and Tailwind CSS.

Live Demo: https://dz-rfcs.stakingfacilities.com/

Features

  • Fetches RFC documents from the DoubleZero GitHub repository
  • Groups RFCs by status (Active, Draft, etc.)
  • Full markdown rendering with syntax highlighting
  • Commit history timeline with diff viewer

Deployment on Linux Server

Prerequisites

  • Node.js 22+ (or 20.19+)
  • A web server (Nginx, Caddy, or similar)

1. Install Node.js 22

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
node --version  # Should show v22.x.x

2. Clone and Build

git clone git@gitlab.sf-intra.net:nodeops/doublezero-rfcs-dashboard.git
cd doublezero-rfcs-dashboard
npm install
npm run build

This creates a dist/ folder with static files.

3. Serve with Nginx

Copy the build output to your web root:

sudo cp -r dist/* /var/www/html/

Or create a dedicated directory and configure Nginx:

sudo mkdir -p /var/www/doublezero-rfcs
sudo cp -r dist/* /var/www/doublezero-rfcs/

Create Nginx config /etc/nginx/sites-available/doublezero-rfcs:

server {
    listen 80;
    server_name your-domain.com;

    root /var/www/doublezero-rfcs;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }
}

Enable and restart:

sudo ln -s /etc/nginx/sites-available/doublezero-rfcs /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx

Alternative: Quick Test with Serve

For quick testing without configuring Nginx:

npm install -g serve
serve -s dist -l 3000

Development

npm install
npm run dev

The dev server runs at http://localhost:5173


Updating

The dashboard fetches RFCs live from GitHub on each page load. To add new RFC files, update the RFC_FILES array in src/App.tsx.

About

Frontend to display the DoubleZero RFCs from Github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •