Git Product home page Git Product logo

ai-fusion-kit's Introduction

AI Fusion Kit

A feature-rich, highly customizable AI Web App Template, empowered by Next.js.

Tech stacks · Installation · Run Locally · Authors


Tech stacks

Installation

  1. Clone the repo

    git clone https://github.com/nphivu414/ai-fusion-kit
  2. Install dependencies

    yarn install
  3. Setup your supabase project

    • You'll first need a Supabase project which can be made via the Supabase dashboard
    • Run the following snippet in your project's SQL Editor
        create table profiles (
          id uuid default uuid_generate_v4() primary key,
          updated_at timestamp default now(),
          username text,
          full_name text,
          avatar_url text,
          website text
        );
      
        create table apps (
          id uuid default uuid_generate_v4() primary key,
          name text not null,
          description text,
          createdAt timestamp default now(),
          updatedAt timestamp default now(),
          slug text not null,
          logoUrl text
        );
      
        create table chats (
          id uuid default uuid_generate_v4() primary key,
          name text,
          createdAt timestamp default now(),
          updatedAt timestamp default now(),
          profileId uuid references profiles (id),
          appId uuid references apps (id),
          settings json
        );
      
        create table messages (
          id uuid default uuid_generate_v4() primary key,
          role public.message_role,
          content text,
          createdAt timestamp default now(),
          updatedAt timestamp default now(),
          profileId uuid references profiles (id),
          chatId uuid references chats (id)
        );
  4. Get an account from OpenAI and generate your own API key

  5. Rename .env.example to .env.local and populate with your values

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.

Run Locally

  1. Go to the project directory
  cd ai-fusion-kit
  1. Start the web app
  yarn dev

Authors

ai-fusion-kit's People

Contributors

nphivu414 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.