Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Ts.ED logo

Ts.ED - auto-classifier


Website   •   Getting started   •   Slack   •   Twitter

An awesome project based on Ts.ED framework

Getting started

Important! Ts.ED requires Node >= 14, Express >= 4 and TypeScript >= 4.

# install dependencies
$  install

# serve
$  start

# build for production
$  build
$  start:prod

API Documentation

API Endpoints

  • POST /rest/openai/predict

    • Sample Request Body

      {
        "query": "Hackers can use SQL injection to bypass login",
        "type": "dance"
      }
    • Sample Response Body

      {
        "corrected_sentance": "Hackers can bypass login using SQL injection.",
        "score": "4"
      }

Docker

# build docker image
docker compose build

# start docker image
docker compose up

Barrelsby

This project uses barrelsby to generate index files to import the controllers.

Edit .barreslby.json to customize it:

{
  "directory": [
    "./src/controllers/rest",
    "./src/controllers/pages"
  ],
  "exclude": [
    "__mock__",
    "__mocks__",
    ".spec.ts"
  ],
  "delete": true
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages