Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kananniftiyev/commentmood
CommentMood" is your all-in-one solution for gaining quick insights into the sentiment of Social Media apps comments. With just a URL, this user-friendly tool retrieves and analyzes comments, providing a clear understanding of the emotional tone within seconds
https://github.com/kananniftiyev/commentmood
chi docker go postgresql youtube
Last synced: 6 days ago
JSON representation
CommentMood" is your all-in-one solution for gaining quick insights into the sentiment of Social Media apps comments. With just a URL, this user-friendly tool retrieves and analyzes comments, providing a clear understanding of the emotional tone within seconds
- Host: GitHub
- URL: https://github.com/kananniftiyev/commentmood
- Owner: kananniftiyev
- Created: 2023-10-05T12:01:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-19T07:39:32.000Z (about 1 year ago)
- Last Synced: 2023-10-19T08:37:29.331Z (about 1 year ago)
- Topics: chi, docker, go, postgresql, youtube
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CommentMood
CommentMood" is your all-in-one solution for gaining quick insights into the sentiment of Social Media apps comments. With just a URL, this user-friendly tool retrieves and analyzes comments, providing a clear understanding of the emotional tone within seconds
## Table of Contents
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Running the API](#running-the-api)
- [API Endpoints](#api-endpoints)
- [Docker](#docker)
- [Configuration](#configuration)
- [Docker](#docker)## Getting Started
### Prerequisites
Before you begin, ensure you have met the following requirements:- Go 1.21 installed on your local machine.
- Docker (optional, for running the API in a Docker container).The following Go modules will be automatically installed as dependencies:
- github.com/jonreiter/govader v0.0.0-20230129030235-c72a790a959e
- google.golang.org/api v0.144.0
- gorm.io/driver/postgres v1.5.2
- gorm.io/gorm v1.25.4
- (and other indirect dependencies, see `go.mod` for the complete list)## Usage
- You can use this API to have better insights about your content in these social media apps: Youtube, Instagram, Twitch
### Running the API##### For running project in local you can do these steps:
1. Open the terminal in your OS.
2. Get to directory where you did download the project
3. Run this Script
```bash
go run main.go
```
## Docker
To run both the application and the database within a Docker environment, follow these steps:
1. Open a terminal and navigate to the root directory of your project.2. Run the following command to build and start the containers:
```bash
docker-compose up --build
```
The --build flag ensures that Docker Compose rebuilds the images if there have been changes to your project's code.
Your API and database will now be up and running in Docker containers, making it easy to manage your development environment.***Note***: You may need to adjust the docker-compose.yml file in your project to configure the specific services and settings required for your application.
### API Endpoints### Analyze YouTube Video
- **Endpoint**: `/api/v1/analyze/youtube`
- **HTTP Method**: POST
- **Description**: Analyzes sentiment for a YouTube video using its video ID.
- **Request Body**: JSON object with the following structure:
```json
{
"videoId": "your_youtube_video_id"
}
- **Response**:
```json
{
"videoID": "video_id",
"positive": 9,
"neutral": 7,
"negative": 7,
"not": 5
}
```## Configuration
Add all needed information to .env file please.