├── .babelrc ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── README.md ├── __tests__ ├── components │ ├── __snapshots__ │ │ └── layout.test.tsx.snap │ └── layout.test.tsx └── pages │ ├── __snapshots__ │ └── index.test.tsx.snap │ └── index.test.tsx ├── jest.config.js ├── next-env.d.ts ├── package.json ├── postcss.config.js ├── public ├── fonts │ ├── BasierCircle-Bold.eot │ ├── BasierCircle-Bold.ttf │ ├── BasierCircle-Bold.woff │ ├── BasierCircle-Bold.woff2 │ ├── BasierCircle-Medium.ttf │ ├── BasierCircle-Medium.woff │ ├── BasierCircle-Medium.woff2 │ ├── BasierCircle-MediumItalic.woff │ ├── BasierCircle-Regular.eot │ ├── BasierCircle-Regular.ttf │ ├── BasierCircle-Regular.woff │ ├── BasierCircle-Regular.woff2 │ ├── BasierCircle-SemiBold.eot │ ├── BasierCircle-SemiBold.ttf │ ├── BasierCircle-SemiBold.woff │ └── BasierCircle-SemiBold.woff2 └── img │ ├── logo.png │ └── screenshot.jpg ├── src ├── components │ ├── Layout.tsx │ ├── MessageForm.tsx │ └── MessageList.tsx ├── pages │ ├── _app.tsx │ ├── api │ │ └── createMessage.ts │ └── index.tsx ├── styles │ ├── globals.css │ └── tailwind.css └── utils │ ├── sendMessage.ts │ └── useMessages.tsx ├── tailwind.config.js ├── tsconfig.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/components/__snapshots__/layout.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/__tests__/components/__snapshots__/layout.test.tsx.snap -------------------------------------------------------------------------------- /__tests__/components/layout.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/__tests__/components/layout.test.tsx -------------------------------------------------------------------------------- /__tests__/pages/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/__tests__/pages/__snapshots__/index.test.tsx.snap -------------------------------------------------------------------------------- /__tests__/pages/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/__tests__/pages/index.test.tsx -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/jest.config.js -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Bold.eot -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Bold.ttf -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Bold.woff -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Bold.woff2 -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Medium.ttf -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Medium.woff -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Medium.woff2 -------------------------------------------------------------------------------- /public/fonts/BasierCircle-MediumItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-MediumItalic.woff -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Regular.eot -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Regular.ttf -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Regular.woff -------------------------------------------------------------------------------- /public/fonts/BasierCircle-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-Regular.woff2 -------------------------------------------------------------------------------- /public/fonts/BasierCircle-SemiBold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-SemiBold.eot -------------------------------------------------------------------------------- /public/fonts/BasierCircle-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-SemiBold.ttf -------------------------------------------------------------------------------- /public/fonts/BasierCircle-SemiBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-SemiBold.woff -------------------------------------------------------------------------------- /public/fonts/BasierCircle-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/fonts/BasierCircle-SemiBold.woff2 -------------------------------------------------------------------------------- /public/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/img/logo.png -------------------------------------------------------------------------------- /public/img/screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/public/img/screenshot.jpg -------------------------------------------------------------------------------- /src/components/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/components/Layout.tsx -------------------------------------------------------------------------------- /src/components/MessageForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/components/MessageForm.tsx -------------------------------------------------------------------------------- /src/components/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/components/MessageList.tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/createMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/pages/api/createMessage.ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/styles/tailwind.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/styles/tailwind.css -------------------------------------------------------------------------------- /src/utils/sendMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/utils/sendMessage.ts -------------------------------------------------------------------------------- /src/utils/useMessages.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/src/utils/useMessages.tsx -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakeprins/nextjs-chatgpt-tutorial/HEAD/yarn.lock --------------------------------------------------------------------------------