How rsingh888/twt-sentiment works
Main Components
a. External Services Layer:
• Twitter API (for fetching tweets)
• Watson NLP API (for sentiment analysis)
• Webtask.io Platform (serverless hosting)
b. Application Layer:
• Single JavaScript function (tweet-sentiment.js)
• API Secrets Configuration
c. Client Layer:
• HTTP Request Interface
• Browser Display
Component Relationships
1. HTTP Client (Browser) at the top
2. To Webtask.io hosting platform
3. Main application function
4. Branch out to both Twitter API and Watson NLP API
5. Return flow of processed data back to the client
[Browser/Client Layer]
• ↓ ↑
[Webtask.io Platform Layer]
• ↓ ↑
[Application Layer (tweet-sentiment.js)]
• ↓ ↑
[External Services Layer]
Asynchronous operations
Remember to include a small metrics/monitoring section showing how the application's performance can be tracked through Webtask.io's dashboard.