Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions new-ai-chat-template/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPENAI_API_KEY=
3 changes: 3 additions & 0 deletions new-ai-chat-template/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
36 changes: 36 additions & 0 deletions new-ai-chat-template/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
41 changes: 41 additions & 0 deletions new-ai-chat-template/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
```
# AI-CHAT


## Description

a revamped version of the Mintbase AI chat template, designed to elevate your user experience and streamline problem-solving.

**Tooling:**

[![Use Case](https://img.shields.io/badge/Use%20Case-{Use%20Case%20One,%20Use%20Case%20Two}-blue)](#)
[![Tools](https://img.shields.io/badge/Tools-Tool%20One,Tool%20Two-blue)](#)
[![Framework](https://img.shields.io/badge/Framework-NextJS%2014-blue)](#)


## Project Walkthrough

To get started with the project, you need to install the dependencies first. Run the following command in your terminal:

```

pnpm install

```

After installing the dependencies, you can start the development server:

```

pnpm run dev

```

Then, open http://localhost:3000 with your browser to see the result.


### Environment Variables

Please create a file name `.env.local` with a variable `OPENAI_API_KEY=`

```
6 changes: 6 additions & 0 deletions new-ai-chat-template/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};

export default nextConfig;
37 changes: 37 additions & 0 deletions new-ai-chat-template/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "ai-chat",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mintbase-js/react": "0.5.1-beta.4",
"@mui/icons-material": "^5.15.5",
"@mui/material": "^5.15.5",
"@near-wallet-selector/modal-ui": "^8.9.2",
"@reduxjs/toolkit": "^2.0.1",
"ai": "^2.2.31",
"axios": "^1.6.5",
"formik": "^2.4.5",
"next": "14.1.0",
"openai": "^4.25.0",
"react": "^18",
"react-dom": "^18",
"react-redux": "^9.1.0",
"simplebar-react": "^3.2.4"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"typescript": "^5"
}
}
Loading