Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Environment variables
.env
.env.local
.env.*.local

# IDEs and Editors
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# Temporary files
/tmp/
*.tmp
*.log

# Build outputs
dist/
build/
*.pid
*.seed
*.pid.lock

# Test coverage
coverage/
.nyc_output/

# OS files
Thumbs.db
196 changes: 194 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,194 @@
# shendaoen
Transform World
# 🌍 Transform World - 改变世界的知识平台

> **"知识是改变世界最强大的工具"** | *"Knowledge is the most powerful tool to transform the world"*

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Node.js](https://img.shields.io/badge/node-%3E%3D%2018.0.0-brightgreen)](https://nodejs.org/)

## 🎯 Vision | 愿景

Transform World is an open-source knowledge-sharing platform that democratizes education and empowers people globally to learn, collaborate, and create positive change. We believe that accessible knowledge can solve the world's greatest challenges.

**Our Mission:**
- 🌐 Break down barriers to quality education
- 🤝 Connect learners and educators worldwide
- 💡 Foster innovation and problem-solving
- 🌱 Cultivate the next generation of world-changers
- ♻️ Promote sustainable development through technology

## ✨ How This Software Can Change the World

1. **Democratized Education**: Free access to knowledge for everyone, regardless of location or economic status
2. **Global Collaboration**: Connecting minds across borders to solve complex problems
3. **Scalable Impact**: One platform can reach millions of learners simultaneously
4. **Open Source**: Transparent, auditable, and community-driven development
5. **Sustainable Development**: Digital platform with minimal environmental footprint
6. **Cultural Exchange**: Multilingual support promoting cross-cultural understanding

## 🚀 Quick Start

### Prerequisites
- Node.js (v18.0.0 or higher - LTS version recommended)
- No external dependencies required - uses built-in Node.js modules!

### Installation & Running

```bash
# Clone the repository
git clone https://github.com/donglovejava/shendaoen.git
cd shendaoen

# Start the server
npm start

# Or run directly
node src/app.js
```

The platform will be available at:
- 🖥️ **Web Interface**: http://localhost:3000
- 🔌 **REST API**: http://localhost:3000/api/articles

## 📚 Features

### Web Interface
- Beautiful, responsive design with bilingual support (中文/English)
- Browse curated knowledge articles
- View platform statistics in real-time
- Modern gradient UI with smooth animations
- Mobile-friendly responsive layout

### REST API Endpoints

```bash
# Get all articles
GET /api/articles

# Get specific article
GET /api/articles/:id

# Create new article
POST /api/articles
Content-Type: application/json
{
"title": "Your Title",
"content": "Your content",
"category": "Category",
"impact": "高"
}

# Get platform statistics
GET /api/stats
```

### Example API Usage

```bash
# Fetch all knowledge articles
curl http://localhost:3000/api/articles

# Get platform statistics
curl http://localhost:3000/api/stats

# Create new article
curl -X POST http://localhost:3000/api/articles \
-H "Content-Type: application/json" \
-d '{
"title": "新知识分享",
"content": "这是一个改变世界的想法...",
"category": "创新",
"impact": "高",
"author": "Your Name (optional, defaults to 匿名)"
}'
```

### API Request Requirements

**POST /api/articles** requires:
- `title` (string, required): Article title
- `content` (string, required): Article content
- `category` (string, required): Article category
- `impact` (string, required): Must be either "高" (High) or "关键" (Critical)
- `author` (string, optional): Author name, defaults to "匿名" (Anonymous) if not provided

All string fields will be trimmed of whitespace. Maximum request body size is 1MB.

## 🌟 Core Concepts

### Knowledge Categories
- 🎓 **技术教育** (Technology Education)
- 🤝 **开源文化** (Open Source Culture)
- ♻️ **可持续发展** (Sustainable Development)
- 💡 **创新思维** (Innovation)
- 🌍 **全球协作** (Global Collaboration)

### Impact Levels
- **高** (High): Significant positive impact on communities
- **关键** (Critical): Game-changing potential for global issues

## 🛠️ Technology Stack

- **Runtime**: Node.js (built-in modules only)
- **Architecture**: RESTful API with server-side rendering
- **Storage**: In-memory (easily extensible to database)
- **Frontend**: Pure HTML5 + CSS3 (no frameworks needed)
- **Deployment**: Works on any platform supporting Node.js

## 🤝 Contributing

We welcome contributions from everyone! Here's how you can help:

1. **Add Knowledge**: Submit new educational content via API
2. **Improve Code**: Fork, improve, and submit pull requests
3. **Translate**: Help make content accessible in more languages
4. **Share Ideas**: Open issues with suggestions for improvement
5. **Spread the Word**: Share this project with others

## 📈 Roadmap

- [x] Core knowledge-sharing platform
- [x] REST API with CRUD operations
- [x] Bilingual web interface
- [ ] User authentication system
- [ ] Database integration (MongoDB/PostgreSQL)
- [ ] Advanced search and filtering
- [ ] Multi-language support (Spanish, French, Arabic, etc.)
- [ ] Mobile applications (iOS/Android)
- [ ] AI-powered content recommendations
- [ ] Real-time collaboration features
- [ ] Integration with popular learning platforms

## 💡 Real-World Applications

This platform can be adapted for:
- 🏫 **Schools & Universities**: Digital learning platforms
- 🏢 **Corporations**: Internal knowledge management
- 🌍 **NGOs**: Community education programs
- 🏛️ **Governments**: Public information systems
- 👥 **Communities**: Local knowledge sharing networks

## 🔒 Security & Privacy

- No user tracking or data collection
- Open source for transparency
- No external dependencies to minimize attack surface
- CORS enabled for API accessibility
- Graceful error handling

## 📄 License

MIT License - feel free to use, modify, and distribute this software to make the world a better place.

## 🌏 Join the Movement

**Every great change starts with knowledge. Let's transform the world together.**

- Star ⭐ this project to show your support
- Fork and contribute to make it better
- Share it with others who want to make a difference

---

*"The best way to predict the future is to create it."* - Abraham Lincoln

**Made with ❤️ for a better world | 用❤️为更美好的世界而创造**
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "shendaoen-transform-world",
"version": "1.0.0",
"description": "A knowledge-sharing platform that transforms the world through education and collaboration",
"main": "src/app.js",
"scripts": {
"start": "node src/app.js",
"dev": "node src/app.js"
},
"engines": {
"node": ">=18.0.0"
},
"keywords": [
"education",
"knowledge-sharing",
"collaboration",
"learning",
"transform-world"
],
"author": "",
"license": "MIT"
}
Loading