Skip to content

Commit

Permalink
Merge pull request #115 from filip-michalsky/ui-interface
Browse files Browse the repository at this point in the history
added ui-interface, to make backend work, replace langchain.chains.ba…
  • Loading branch information
filip-michalsky authored Mar 3, 2024
2 parents b319d20 + 3632d75 commit 466a441
Show file tree
Hide file tree
Showing 34 changed files with 6,102 additions and 146 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
!.github/workflows

/my-app/node_modules


*.log
**.env
.DS_Store
**__pycache__
/scratch
**.chroma/


# Distribution / packaging
.Python
build/
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include requirements.txt
include requirements.txt
3 changes: 3 additions & 0 deletions frontend/.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 frontend/.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
31 changes: 31 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SalesGPT Frontend Application

### Overview

This repository contains the frontend application for SalesGPT, a tool designed for testing and debugging purposes. Built on the Next.js platform, it provides a user-friendly interface to interact with the SalesGPT functionalities.

### Installation

To set up the project environment, follow these steps:

1. Clone the repository to your local machine.
2. Navigate to the frontend directory: `cd frontend/`
3. Install all the necessary dependencies: `npm install`

### Running the Application

To start the frontend server, run the following command:
`npm run dev`
After starting the server, the application will be available at [localhost:3000/chat](http://localhost:3000/chat).

### Backend Dependency

This frontend application is designed to work in conjunction with a FastAPI backend. To initiate the backend server, execute the following command from the SalesGPT/ directory: `uvicorn run_api:app --port 8000`

## Contributing

We welcome contributions to the SalesGPT frontend application. Please feel free to submit pull requests or open issues to suggest improvements or add new features.

## License

This project is licensed under the MIT License - see the LICENSE file for details.
17 changes: 17 additions & 0 deletions frontend/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/styles/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
6 changes: 6 additions & 0 deletions frontend/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;
Loading

0 comments on commit 466a441

Please sign in to comment.