Skip to content

Commit c9aa8d3

Browse files
bejranondaclaude
andcommitted
docs: Add comprehensive GitHub About section and improve repository metadata
- Create about.md with project description, features, and badges - Update package.json with comprehensive keywords for discoverability - Add GitHub Actions workflow for automated deployment - Create CONTRIBUTING.md guidelines for contributors - Add repository statistics and live deployment links - Include technology stack and educational content information Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 4c098bb commit c9aa8d3

4 files changed

Lines changed: 273 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to Cloudflare Pages
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
paths-ignore:
7+
- 'node_modules'
8+
- '.git'
9+
- 'dist'
10+
pull_request:
11+
branches: [ master, main ]
12+
workflow_dispatch:
13+
14+
jobs:
15+
build-and-deploy:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
deployments: write
20+
id-token: write
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '18'
30+
cache: 'npm'
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build project
36+
run: npm run build
37+
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: ./dist
42+
43+
- name: Deploy to Cloudflare Pages
44+
uses: cloudflare/pages-action@v3
45+
with:
46+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48+
projectName: thaisim2026
49+
directory: dist
50+
productionBranch: master
51+
alias: thaisim2026.autobahn.bot

CONTRIBUTING.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Contributing to Sim-Thailand 2569 🇹🇭
2+
3+
Thank you for your interest in contributing to Sim-Thailand 2569! This document provides guidelines for contributing to the project.
4+
5+
## 🤝 How to Contribute
6+
7+
### Reporting Issues
8+
If you find a bug or want to request a new feature, please create an issue using the following format:
9+
10+
**Bug Report:**
11+
- Title: Clear and descriptive
12+
- Description: Steps to reproduce the bug
13+
- Expected behavior: What should happen
14+
- Actual behavior: What actually happens
15+
- Screenshots (if applicable)
16+
17+
**Feature Request:**
18+
- Title: Clear and descriptive
19+
- Description: Detailed explanation of the feature
20+
- Use case: Why this feature would be helpful
21+
- Implementation suggestions (if any)
22+
23+
### Pull Requests
24+
We welcome pull requests! Here's how to contribute:
25+
26+
1. **Fork the repository** - Fork the main repository
27+
2. **Create a feature branch** - `git checkout -b feature/amazing-feature`
28+
3. **Make your changes** - Follow the coding standards below
29+
4. **Test your changes** - Run `npm run build` to ensure it builds successfully
30+
5. **Commit your changes** - Use conventional commit format
31+
6. **Push to your fork** - `git push origin feature/amazing-feature`
32+
7. **Create a Pull Request** - Clear description of changes made
33+
34+
## 📝 Coding Standards
35+
36+
### JavaScript/HTML/CSS
37+
- Use ES6+ JavaScript features
38+
- Follow existing code style and formatting
39+
- Use meaningful variable and function names
40+
- Add comments for complex logic
41+
- Ensure responsive design for mobile devices
42+
43+
### Git Commit Messages
44+
Use conventional commit format:
45+
```
46+
feat: add new feature
47+
fix: resolve bug
48+
docs: update documentation
49+
style: format code
50+
refactor: restructure code
51+
test: add tests
52+
chore: maintenance
53+
```
54+
55+
### Pull Request Template
56+
```markdown
57+
## Description
58+
Brief description of the changes
59+
60+
## Changes Made
61+
- [ ] Change 1
62+
- [ ] Change 2
63+
- [ ] Change 3
64+
65+
## Testing
66+
- [ ] Tested on Chrome
67+
- [ ] Tested on Firefox
68+
- [ ] Tested on Mobile
69+
70+
## Related Issue
71+
Closes #123
72+
```
73+
74+
## 📁 Project Structure
75+
76+
```
77+
ThaiSim2569/
78+
├── src/
79+
│ ├── js/ # JavaScript files
80+
│ └── css/ # CSS styles
81+
├── Campaign2569/ # Political campaign data
82+
├── dist/ # Build output
83+
└── docs/ # Documentation
84+
```
85+
86+
## 🔧 Development Setup
87+
88+
1. Clone the repository
89+
2. Install dependencies: `npm install`
90+
3. Run development server: `npm run dev`
91+
4. Build for production: `npm run build`
92+
93+
## 📄 License
94+
95+
By contributing to this project, you agree that your contributions will be licensed under the MIT License.
96+
97+
## 🙏 Acknowledgments
98+
99+
Thank you for contributing to Sim-Thailand 2569! Your help makes this educational resource better for everyone.

about.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Sim-Thailand 2569 🇹🇭
2+
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4+
[![Version](https://img.shields.io/badge/v3.3.0-blue.svg)](https://github.com/bejranonda/ThaiSim2026/releases)
5+
[![Website](https://img.shields.io/badge/Website-green.svg)](https://thaisim2026.autobahn.bot)
6+
[![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-gray.svg)](https://thaisim2026.autobahn.bot)
7+
[![GitHub Actions](https://github.com/bejranonda/ThaiSim2026/actions/workflows/deploy.yml/badge.svg)](https://github.com/bejranonda/ThaiSim2026/actions/workflows/deploy.yml)
8+
[![Contributors](https://img.shields.io/github/contributors/bejranonda/ThaiSim2026.svg)](https://github.com/bejranonda/ThaiSim2026/graphs/contributors)
9+
[![Forks](https://img.shields.io/github/forks/bejranonda/ThaiSim2026.svg)](https://github.com/bejranonda/ThaiSim2026/network/members)
10+
[![Stars](https://img.shields.io/github/stars/bejranonda/ThaiSim2026.svg)](https://github.com/bejranonda/ThaiSim2026/stargazers)
11+
12+
> **Thai Political Simulation Game** - Build your dream nation through real policy choices from 18 political parties across 6 critical phases.
13+
14+
## 🎮 About Sim-Thailand 2569
15+
16+
Sim-Thailand 2569 is an interactive political simulation designed for the 2026 Thai General Election context. It allows users to experience governance by making policy decisions and seeing how they impact the country.
17+
18+
### Key Features
19+
- **18 Political Parties**: Complete with real policy platforms from the 2569 election cycle
20+
- **6 Critical Phases**: Cover major policy areas like Economy, Land/Agriculture, Welfare, Anti-Corruption, National Security, and Future/Education
21+
- **Real-Time Results**: Live dashboard showing voting trends from all users
22+
- **Party Matching**: Get matched with a political party based on policy alignment
23+
- **Interactive Voting**: Cast manual votes for your preferred party
24+
- **Educational Tool**: Learn about the Thai political landscape through simulation
25+
26+
### 📊 Tracking Metrics
27+
The simulation tracks three key pillars of governance:
28+
- 📈 **Economy (ศก.)** - Economic and fiscal policy decisions
29+
- 🤝 **Welfare (สังคม)** - Social welfare and quality of life policies
30+
- ⚖️ **Democracy (ปชต.)** - Democratic values and governance principles
31+
32+
## 🚀 Technology Stack
33+
34+
- **Frontend**: HTML5, CSS3, JavaScript (ES6+)
35+
- **UI Framework**: Tailwind CSS
36+
- **Build Tool**: Vite
37+
- **Charts**: Chart.js for data visualization
38+
- **Database**: Firebase Firestore for real-time data
39+
- **Deployment**: Cloudflare Pages
40+
41+
## 🎯 How It Works
42+
43+
1. **Start Simulation**: Users begin with an introduction to the simulation
44+
2. **Policy Decisions**: Navigate through 6 phases making critical policy choices
45+
3. **View Results**: See how policies affect the three tracking metrics
46+
4. **Party Matching**: Get matched with the most aligned political party
47+
5. **Vote & Share**: Cast your vote and share results on social media
48+
49+
## 📚 Educational Content
50+
51+
All policies are sourced from the **Nation Election DEBATE** (Updated: 17 January 2569) to ensure accuracy and educational value. Reference materials and debate transcripts are organized in the `/Campaign2569` folder.
52+
53+
## 🔧 Getting Started
54+
55+
### Prerequisites
56+
- Node.js 18 or higher
57+
- npm or yarn package manager
58+
59+
### Installation
60+
61+
```bash
62+
# Clone the repository
63+
git clone https://github.com/bejranonda/ThaiSim2026.git
64+
cd ThaiSim2026
65+
66+
# Install dependencies
67+
npm install
68+
69+
# Run the development server
70+
npm run dev
71+
72+
# Build for production
73+
npm run build
74+
```
75+
76+
### Environment Setup
77+
78+
The app requires Firebase environment variables to be set. Refer to the [Cloudflare Deployment Guide](./CLOUDFLARE_DEPLOYMENT.md) for detailed setup instructions.
79+
80+
## 🌐 Live Deployment
81+
82+
- **Production**: https://thaisim2026.autobahn.bot
83+
- **GitHub Repository**: https://github.com/bejranonda/ThaiSim2026
84+
85+
## 📈 Statistics
86+
87+
- **40,000+** active participants in the first two weeks
88+
- **100,000+** unique visits
89+
- **18** political parties with real policy platforms
90+
- **6** simulation phases covering critical policy areas
91+
92+
## 🤝 Contributing
93+
94+
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
95+
96+
## 📄 License
97+
98+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
99+
100+
## 🙏 Acknowledgments
101+
102+
- Developed by [Thalay.eu](https://thalay.eu/)
103+
- Political data sourced from Nation Election DEBATE 2569
104+
- Built with [Vite](https://vitejs.dev/) and [Tailwind CSS](https://tailwindcss.com/)
105+
- Deployed on [Cloudflare Pages](https://pages.cloudflare.com/)
106+
107+
---
108+
109+
**Note**: This simulation is for educational purposes only and provides an interactive way to understand Thai political policy platforms.

package.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@
1212
},
1313
"keywords": [
1414
"thailand",
15-
"politics",
16-
"simulation",
17-
"game",
18-
"election"
15+
"thai-election",
16+
"political-simulation",
17+
"educational-game",
18+
"policy-simulation",
19+
"democracy",
20+
"thai-politics",
21+
"interactive-game",
22+
"civic-engagement",
23+
"election-2026",
24+
"thai-government",
25+
"policy-matching",
26+
"voting-simulation",
27+
"educational-tool",
28+
"civic-education"
1929
],
2030
"author": "",
2131
"license": "MIT",

0 commit comments

Comments
 (0)