https://github.com/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
https://github.com/kimtth/nextjs-typescript-learn
chatui
Last synced: 12 months ago
JSON representation
Minimal ChatUI (🚧Work in progress). All features are not necessary to demo. Just minimum to work. / api-repo: fastapi-oai-showcase
- Host: GitHub
- URL: https://github.com/kimtth/nextjs-typescript-learn
- Owner: kimtth
- Created: 2023-06-15T13:43:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T09:48:32.000Z (over 2 years ago)
- Last Synced: 2025-07-05T18:32:48.271Z (12 months ago)
- Topics: chatui
- Language: TypeScript
- Homepage:
- Size: 196 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal chat user interface
## Begin Project
### Start Next.js & Chakra UI
```bash
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
```
```markdown
> 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](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](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](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](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](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!