Skip to content

darylong/micro-tech

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Second, create .env file and fill up relevant variables shown in env.example

DATABASE_URL=
OPENAI_API_KEY=

Open http://localhost:3000 with your browser to see the result.

API Endpoints

1. [GET] api/correctness:
Return all messages stored in database.

2. [POST] /api/correctness:
Create one new message that will be corrected by OpenAI API & stored in database.

3. [POST] /api/random:
Return one random messages stored in database.

Product Demo

Product Demo Screenshot

Product is also hosted on Vercel and can be accessd through: https://micro-tech.vercel.app/