2025-08-26 10:14:05 -06:00
2025-08-21 09:17:10 -06:00
2025-08-21 20:10:46 -06:00
2025-08-20 12:30:59 -06:00
2025-08-11 13:54:54 -06:00
2025-04-08 10:07:55 -06:00
2025-08-18 12:56:53 -06:00
2025-08-18 12:56:53 -06:00
2025-08-21 11:25:16 -06:00
2025-08-11 13:54:54 -06:00

Community Rule

A Next.js application for community decision-making and governance documentation.

Getting Started

Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Storybook Development

This project includes Storybook for component development and documentation. The setup supports both local development and GitHub Pages deployment.

Local Development

For local Storybook development (no base path):

npm run storybook:local

This will:

  • Copy local configuration files (without GitHub Pages base path)
  • Start Storybook at http://localhost:6006
  • Ignore configuration changes in git

Production Deployment

When ready to deploy to GitHub Pages:

  1. Restore GitHub Pages configuration:

    npm run storybook:restore
    
  2. Build Storybook:

    npm run build-storybook
    
  3. Deploy to GitHub Pages repository:

    # Copy the build to your GitHub Pages repository
    cp -r storybook-static/* /path/to/communityrulestorybook/
    
    # Or if you have it as a git submodule:
    cp -r storybook-static/* communityrulestorybook/
    cd communityrulestorybook
    git add .
    git commit -m "Update Storybook build"
    git push origin main
    

Switching Between Configurations

  • Local Development: npm run storybook:local
  • Production Build: npm run storybook:restore then npm run build-storybook
  • Back to Local: npm run storybook:local

The gitignore is configured to prevent configuration file changes from triggering git changes during local development.

Available Scripts

  • npm run dev - Start Next.js development server
  • npm run build - Build Next.js application for production
  • npm run start - Start Next.js production server
  • npm run storybook:local - Start Storybook with local configuration
  • npm run storybook:restore - Restore GitHub Pages configuration
  • npm run build-storybook - Build Storybook for production
  • npm run storybook - Start Storybook with current configuration
S
Description
No description provided
Readme GPL-3.0 110 MiB
Languages
TypeScript 80.6%
JavaScript 16.7%
CSS 2.3%
Shell 0.3%
Dockerfile 0.1%