https://github.com/sldeaals/chat-widget
https://github.com/sldeaals/chat-widget
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sldeaals/chat-widget
- Owner: sldeaals
- License: mit
- Created: 2024-08-07T17:14:19.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T17:44:28.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T00:42:11.134Z (over 1 year ago)
- Language: JavaScript
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chat Widget Example
## Instructions
* Create a chat interface using Nextjs, shadcn, tailwind css, prisma, mongodb
* You should allow the user to upload files and send it as well.
* Create 3 different pages
* When the user switches between the pages they should get different prompts on each page.
* The chat should have a widget at the bottom right of the screen and have the option to expand its size
There are no limitations on resources, feel free to use existing code, starter repos, or anything else just make a note of what you are reusing and what new code you've written.
## Install Dependencies
```bash
nvm use
npm i
```
## Fill ENV Variables
```bash
NEXT_PUBLIC_API_URL=
NEXT_PUBLIC_USER_ID=
DATABASE_URL=
USER_ID=
```
## Initialize Prisma ORM
```bash
npx prisma db push
npx prisma generate
```
## Run App
```bash
npm run dev
```