Skip to content

A Q&A platform that leverages AI to expand, enhance, and get more in-depth answers to various questions from a diverse range of categories

License

Notifications You must be signed in to change notification settings

ChiragAgg5k/askit

ASKIT is a community-driven Q&A platform that leverages ChatGPT to expand, enhance, and get more in-depth answers to various questions from a diverse range of categories. It is built using Next.js, Prisma, and NextAuth.js.

Table of Contents

✨ Features

  • Diverse Categories: ASKIT offers a wide variety of categories, not limited to just tech. Users can find answers to their questions on topics ranging from technology to arts, science, and more.

Auth

  • AI-Powered Search: Our AI-driven search engine makes it easier to find relevant answers quickly.

AI Analyze

  • Secure Authentication: We use NextAuth.js for secure and customizable authentication.

Auth

  • Efficient Data Handling: Prisma ensures efficient data handling and database operations.

  • Modern UI: ASKIT boasts a clean and user-friendly interface powered by Tailwind CSS.

  • APIs: We use tRPC for efficient and type-safe API communication.

Getting Started

🛠️Prerequisites

  • Node.js
  • NPM or Yarn or PNPM
  • Your favorite code editor

Installation

  1. Clone the repository:

    git clone https://github.com/ChiragAgg5k/askit
    cd askit
  2. Install dependencies using your favorite package manager:

    npm install
    # pnpm install
    # yarn install
  3. Create a .env file in the root directory with the following environment variables and values:

Prisma

  • Specify the database connection string in the DATABASE_URL environment variable in the .env file:

DATABASE_URL="file:./db.sqlite"

Next Auth

  • You can generate a new secret on the command line with:

    openssl rand -base64 32

    More info here.

  • NextAuth URL, specify the URL of your application for signing in and callback URLs

    NEXTAUTH_URL="http://localhost:3000"

GitHub OAuth

GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""

Google OAuth

GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""

OpenAI API Key

OPENAI_API_KEY=""
  1. Migrate the database:

    npm prisma migrate dev
  2. Run the development server:

    npm run dev
    # pnpm run dev
    # yarn dev

    Your ASKIT instance should now be running at http://localhost:3000.

🌟Usage

  • Visit the ASKIT website here.
  • Sign in or create an account.
  • Ask any question on any topic you would like, if it exists you will be redirected to the question page, if not you will be redirected to the create question page.
  • Ask questions, provide answers, or upvote and comment on existing posts.

Technologies and Services Used

  • T3-stack - A fullstack template for Next.js, Prisma, and NextAuth.js.
  • Next.js - The React Framework with Hybrid Static & Server Rendering.
  • NextAuth.js - Authentication for Next.js.
  • Prisma - Next-generation ORM for Node.js and TypeScript.
  • Tailwind CSS - A utility-first CSS framework for rapid UI development.
  • tRPC - End-to-end typesafe APIs made easy.

📋 License

This project is licensed under the MIT License License - see the LICENSE file for details.

About

A Q&A platform that leverages AI to expand, enhance, and get more in-depth answers to various questions from a diverse range of categories

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages