Khongchai / SonThaiMaiDai

Thailand Stupid Hackathon #7 project

Home Page:https://khongchai.github.io/SonThaiMaiDai/frontend/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to SonThaiMaiDai!

This site aims to help people become more proficient in Thai through our state-of-the-art AI-backed translator.

frontend: https://khongchai.github.io/SonThaiMaiDai/frontend/index.html

backend: https://son-thai-mai-dai.vercel.app/api

For Developers

Check your dms for the OpenAI's Api key.

API Specs

  1. POST /api/translate
interface TranslateRequest {
    sentence: string; // soft-max 50 characters. (ถ้าให้เกิน 50 ได้ 200 ครับแต่จะโดนด่า)
}

interface TranslateResponse {
    result: string; // same key as request.
}
  1. GET /api/ping
interface PingResponse {
    data: "pong";
}
  1. GET /api/wordoftheday
interface WordOfTheDayResponse {
    thaiWord: string;
    englishWord: string;
}
  1. GET /api/tired
interface TiredResponse {
    result: string;
}

About

Thailand Stupid Hackathon #7 project

https://khongchai.github.io/SonThaiMaiDai/frontend/index.html


Languages

Language:HTML 79.9%Language:TypeScript 20.1%