kimtth / nextjs-typescript-learn

Minimal ChatUI (🚧Work in progress). All features are not necessary to demo. Just minimum to work. / api-repo: fastapi-oai-showcase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal chat user interface

Begin Project

Start Next.js & Chakra UI

npx create-next-app@12 nextjs-chat --typescript
npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion --save
cd nextjs-chat
npm run dev
> npx create-next-app@12 nextjs-chat --typescript
√ Would you like to use ESLint with this project? ... **No** / Yes
√ Would you like to use Tailwind CSS with this project? ... No / **Yes**
√ Would you like to use `src/` directory with this project? ... **No** / Yes
√ Use App Router (recommended)? ... No / **Yes**
√ Would you like to customize the default import alias? ... **No** / Yes

Hello! Next.js

Access to http://localhost:3000/chat


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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

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

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

Minimal ChatUI (🚧Work in progress). All features are not necessary to demo. Just minimum to work. / api-repo: fastapi-oai-showcase


Languages

Language:TypeScript 98.7%Language:CSS 0.7%Language:JavaScript 0.5%