Charlytoc / easy-ai-groq

An AI Chatbot template made of FastAPI, ViteJs + React and Grok

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Template for Building AI Applications with Python (FastAPI) and TypeScript (ViteJs) using Groq as API

If you're in a Codespace

  1. Run the following in the terminal:
cp .env.example .env
  1. Find your Groq key here
  2. Replace the environment variable GROQ_API_KEY with the correct key
  3. Restart the development server:
bash init-dev.sh

Requirements

  • Python (install the latest version here)
  • NodeJs (install the LTS version here)

Installation

  1. Clone this repository
  2. Move to the project directory:
cd project-directory
  1. Initialize a virtual environment:
python -m venv venv

or

py -m venv venv
  1. Activate the virtual environment:
source venv/Scripts/activate
  1. Install the dependencies:
pip install -r requirements.txt
npm install
  1. Copy the .env.example file to .env:
cp .env.example .env
  1. Add your Groq API key to the .env file. Find your API key in your Groq account settings HERE.

  2. Start the application:

bash init-dev.sh

That's it! You can now access the application at http://localhost:8000 and customize it according to your needs.

The init-dev.sh script will run both the backend and frontend servers concurrently.

In the future, I will update the repo with other useful scripts for deployment and more. Feel free to contribute and make AI accessible to everyone!

About

An AI Chatbot template made of FastAPI, ViteJs + React and Grok


Languages

Language:Python 36.7%Language:TypeScript 36.5%Language:CSS 20.5%Language:JavaScript 2.7%Language:HTML 2.3%Language:Procfile 0.7%Language:Shell 0.6%