This is a Next.js project bootstrapped
with create-next-app
.
Politer AI is a web app that uses GPT-3.5, a powerful AI model, to make messages more polite and friendly. Type your message and click the button to see the result. You can use it for any communication that needs politeness and friendliness. No registration or personal data needed, and it is free.
• Programming language: TypeScript;
• SDK: Next.js;
• Version control system: Git;
• Git Hosting Service: GitHub;
• CI/CD: Vercel is used to deliver the new releases to the production environment after every push to the master branch;
• RESTful API: https://platform.openai.com/docs/api-reference;
• Architectural pattern: Monolith;
• Screenshot:
To run this project locally, you must have Node.js on your machine. First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
API routes can be accessed on http://localhost:3000/api/polite.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated
as API routes instead of React pages.
This project uses next/font
to automatically optimize and
load Inter, a custom Google Font.
• Code Readability: code is easily readable with no unnecessary blank lines, no unused variables or methods, and no commented-out code, all variables, methods, and resource IDs are descriptively named such that another developer reading the code can easily understand their function.
This project is based on the Build and Deploy a GPT-3 App in Next.js in 1 Hour (ChatGPT, TypeScript) by Coding in Flow YouTube channel. All credit goes to the original author Florian Walther. I only followed along and made some minor changes.