The Text Summary is a service designed to summarize text content using the Cohere AI summarization model. This API provides endpoints for text summarization, storing summarized data, retrieving historical data, and clearing the stored history.
- Summarize text content using Cohere AI summarization.
- Store summarized data along with the original text.
- Retrieve historical summarized data.
- Clear stored historical data.
- React.js
- Node.js
- Express.js
- Tailwindcss
- MongoDB (Mongoose ORM)
- Cohere AI API
-
Clone the repository:
git clone https://github.com/rohit-sama/text-summary-api.git
-
Navigate to the project directory:
cd text-summary/frontend cd text-summary/backend
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env
file in the root directory and add the following variables:MONGO_URL=your_mongodb_connection_string COHERE_API_KEY=your_cohere_api_key
-
Run the server:
cd backend nodemon server.js cd .. cd frontend npm run dev
-
Access the API endpoints:
- Summarize text:
POST /summarize-text/v2
- Get historical data:
GET /api-data
- Clear historical data:
DELETE /clear-history
- Summarize text: