Bỏ qua để đến nội dung

Documentation

Kỹ năng viết tài liệu kỹ thuật hiệu quả.

  • Product Requirements Document
  • Software Requirements Specification
  • Mô tả chi tiết features và requirements
  • Architecture diagrams
  • Database schema
  • API documentation
  • Technology stack
  • User guides
  • Help articles
  • FAQs
  • Tutorials
  • README files
  • Code comments
  • API references
  • Setup guides
# Project Name
## Overview
Brief description of the project
## Features
- Feature 1
- Feature 2
## Technical Stack
- Frontend: React + TypeScript
- Backend: Node.js + Express
- Database: PostgreSQL
## Setup
1. Clone repo
2. Install dependencies: `npm install`
3. Run: `npm run dev`
## API Documentation
### GET /api/users
Returns list of users
**Response:**
```json
{
"data": [...]
}
```

Guidelines for contributors

## README Template
```markdown
# Project Name
Brief description
## Features
- Feature list
## Installation
```bash
npm install
Terminal window
npm run dev
DATABASE_URL=...
JWT_SECRET=...

MIT

## API Documentation
```markdown
## Login
`POST /api/login`
**Request:**
```json
{
"email": "user@example.com",
"password": "password123"
}

Response:

{
"token": "eyJhbGc...",
"user": {
"id": 1,
"email": "user@example.com"
}
}

Status Codes:

  • 200 - Success
  • 401 - Invalid credentials
  • 400 - Validation error
## Best Practices
1. **Keep it updated** - Sync with code changes
2. **Be concise** - Clear and to the point
3. **Use examples** - Show don't just tell
4. **Proper formatting** - Make it readable
5. **Version control** - Track documentation changes