A basic AI chat agent that will eventually be hooked up to a vector database.
- Go 1.16 or later
- Node.js 14 or later
- npm 6 or later
-
Navigate to the backend directory:
cd app/api
-
Install dependencies:
go mod tidy
-
Run the backend server:
go run main.go
The backend server will start on http://localhost:8080
.
-
Navigate to the frontend directory:
cd app/frontend
-
Install dependencies:
npm install
-
Start the development server:
npm start
The frontend development server will start, typically on http://localhost:3000
.
- Start the backend server as described above.
- In a separate terminal, start the frontend development server.
- Open your browser and navigate to
http://localhost:3000
to use the application.
- The backend code is located in
app/api/main.go
. - The frontend code is in the
app/frontend/src
directory, withApp.tsx
as the main component. - Tailwind CSS is used for styling. The configuration is in
app/frontend/tailwind.config.js
.
- The backend currently sends random phrases as responses. Future plan is to implement some AI logic to replace this behavior.
- Ensure both backend and frontend are running simultaneously for the application to work properly.