Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fanfare Toxic Text Detection Micro Service

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/FanFareBD/toxic-text-detection-micro-service
  2. Go to the project directory

    cd Toxic Text Detection Service
  3. Install dependencies

    Make sure you have Node.js installed. Then run:

    npm install

Configurations

  1. Environment Variables

    Create a .env file in the root of the project and add necessary environment variables given below:

    PORT=
    MONGO_URI=
    TOXIC_TEXT_DETECTION_API="toxic-text-ai-model-url/predict"
    TOXIC_TEXT_PUBLICATION_API="ff-backend-url/toxic-text-detection/fanfare-backend-ttd-publication"

Running the Project

  1. Build the development Server

    npm run build
    
  2. Start the development Server

    npm run start
    

    OR


  3. Build and Start the Development Server Concurrently

    npm run dev
    

    You can see in server log

    Toxic Text Detection Micro Service has started on port http://localhost:YOUR_PORT

Starting Cron Jobs

Starting Ttd Processor Job

  GET /ttd-processor/start

Stopping Ttd Processor Job

  GET /ttd-processor/stop

Starting Ttd Publisher Job

  GET /ttd-publisher/start

Stopping Ttd Publisher Job

  GET /ttd-publisher/stop

Authors

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages