๐Ÿ“ฆ ntindle / governance.md

๐Ÿ“„ README.md ยท 124 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124# governance.md

A modern web application for creating and managing software project governance documentation. Generate tailored governance templates based on your team size and structure.

## Features

- ๐Ÿ“ Pre-built governance templates for different team sizes
- ๐ŸŽจ Clean, modern UI built with React and Tailwind CSS
- ๐Ÿš€ Fast performance with Vite and Cloudflare Workers
- ๐Ÿ“ฑ Fully responsive design
- ๐Ÿ”ง Customizable templates for:
  - Solo developers
  - Two-person teams
  - Small teams
  - Large teams

## Tech Stack

- **Frontend**: React 18, TypeScript, Tailwind CSS
- **UI Components**: shadcn/ui
- **Build Tool**: Vite
- **Deployment**: Cloudflare Workers/Pages
- **Routing**: React Router v6
- **State Management**: TanStack Query

## Getting Started

### Prerequisites

- Node.js & npm installed - [install with nvm](https://github.com/nvm-sh/nvm#installing-and-updating)

### Installation

```bash
# Clone the repository
git clone https://github.com/ntindle/governance.md.git
cd governance.md

# Install dependencies
npm install

# Start development server
npm run dev
```

The application will be available at `http://localhost:8080`

## Available Scripts

```bash
npm run dev          # Start development server
npm run build        # Build for production
npm run build:dev    # Build for development mode
npm run lint         # Run ESLint
npm run preview      # Preview production build locally
npm run deploy       # Deploy to Cloudflare Workers
```

## Project Structure

```
governance.md/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/     # React components
โ”‚   โ”‚   โ””โ”€โ”€ ui/         # shadcn/ui components
โ”‚   โ”œโ”€โ”€ pages/          # Page components
โ”‚   โ”œโ”€โ”€ hooks/          # Custom React hooks
โ”‚   โ”œโ”€โ”€ lib/            # Utility functions
โ”‚   โ””โ”€โ”€ App.tsx         # Main application entry
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ templates/      # Governance markdown templates
โ”œโ”€โ”€ dist/               # Production build output
โ””โ”€โ”€ wrangler.jsonc      # Cloudflare configuration
```

## Development

### Local Development

The development server runs on port 8080 and supports hot module replacement:

```bash
npm run dev
```

### Building for Production

```bash
npm run build
```

This creates an optimized production build in the `dist/` directory.

### Deployment

The application is configured for deployment to Cloudflare Workers:

```bash
npm run deploy
```

This requires Wrangler to be configured with your Cloudflare account credentials.

## Customization

### Adding New Templates

Add new governance templates to `public/templates/` as markdown files. They will be automatically available in the application.

### Modifying UI Components

The project uses shadcn/ui components located in `src/components/ui/`. These are fully customizable and use Tailwind CSS for styling.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

MIT License - see the [LICENSE](LICENSE) file for details

## Support

For questions or issues, please open an issue on GitHub.