Skip to content

Politer AI is a web app that uses GPT-3.5, a powerful AI model, to make messages more polite and friendly.

Notifications You must be signed in to change notification settings

Turskyi/nextjs_gpt3

Repository files navigation

Stand With Ukraine Vercel Deploy

Politer AI – web app

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.

PROJECT SPECIFICATION

• 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:

screenshot of the home page

Getting started

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.

Credits

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.