Appearance
📦 Projects thực hành
Áp dụng kiến thức đã học vào các project thực tế!
🟢 Beginner Projects
1. CLI Todo App
Skills: variables, structs, file I/O, slices
bash
todo add "Learn Go basics"
todo list
todo done 12. Unit Converter
Skills: functions, types, user input
bash
convert 100 km miles
convert 32 celsius fahrenheit3. File Organizer
Skills: file I/O, os package, filepath
Tự động organize files vào folders theo extension.
🟡 Intermediate Projects
4. URL Shortener
Skills: HTTP server, JSON, map, encoding
bash
curl -X POST -d '{"url":"https://google.com"}' http://localhost:8080/shorten
# Returns: {"short_url":"http://localhost:8080/abc123"}5. Weather CLI
Skills: HTTP client, JSON parsing, API calls
bash
weather hanoi
# Temperature: 28°C, Humidity: 75%6. Markdown to HTML Converter
Skills: strings, regex, file I/O
Convert .md files to .html.
🔴 Advanced Projects
7. REST API with JWT Auth
Skills: Gin/Echo, JWT, PostgreSQL, GORM
Full-featured API với:
- User registration/login
- JWT authentication
- CRUD operations
- Rate limiting
8. Real-time Chat Server
Skills: WebSockets, goroutines, channels
bash
# Multiple clients connect via WebSocket
# Real-time message broadcasting9. URL Crawler
Skills: concurrency, channels, worker pools
bash
crawler https://example.com --depth=2 --workers=510. Job Queue System
Skills: Redis, background workers, retry logic
bash
# Submit jobs
curl -X POST localhost:8080/jobs -d '{"type":"email","data":{...}}'
# Workers process jobs from queue🚀 Full Stack Projects
11. Blog Platform
- Backend: Gin + PostgreSQL
- Frontend: React/Vue
- Features: CRUD, auth, comments, search
12. Task Management System
- Backend: Fiber + MongoDB
- WebSocket for real-time updates
- Drag & drop UI
13. URL Monitoring Service
- Check URLs periodically
- Store response times
- Alert on failures
- Dashboard with charts
14. File Upload Service
- Multipart upload
- S3-compatible storage
- Progress tracking
- Chunked uploads
15. API Gateway
- Reverse proxy
- Rate limiting
- Authentication
- Request logging
📊 Project Templates
Khởi động nhanh với các template:
bash
# CLI App
git clone https://github.com/example/go-cli-template
# REST API
git clone https://github.com/example/go-api-template
# Web App
git clone https://github.com/example/go-web-template🎯 Tips cho Projects
- Start small: MVP trước, sau đó mở rộng
- Test: Viết test ngay từ đầu
- Document: README rõ ràng
- Version control: Commit thường xuyên
- Deploy: Deploy lên cloud (Render, Railway, Fly.io)
📚 Resources
Chúc bạn thành công với các project! 🎉