Profanity is such a problem in an App where user can submits their own message or text. So thats basically why this API exist π
How this API works is quiet simple, the API snatch the message users are trying to send and send it to Google's Gemini to filter if theres any profanity included in the textπ. So modern tech on the rollπ
No complex set up!π. All you need is Google Gemini API Key And A MongoDB URI and just slap it into your .env fileπ
# Server Set Up
SERVER_PORT=3000
SERVER_SECRET="Your App Secret (Just Put A Random Word Then You'll Fine)"
# Gemini Key
GEMINI_API_KEY="Your Gemini API Key"
# MONGODB
MONGODB_URI="Your MongoDB URI"
And fires it up with all new bun runtime π₯
bun --watch server.ts
And All Done! The API Is Ready To Rollπ₯π₯π₯