Coder Social home page Coder Social logo

quizz-ai-tutorial's Introduction

The project that uses AI to generate quizzes.

Screenshot 2024-01-22 at 3 34 26 PM

Tech Stack

  • Next-auth - Authentication
  • Shadcn ui - ui library
  • Open Al - AI Integration
  • Langchain - LLM Framework
  • Drizzle - Orm
  • PostgreSQL - Database
  • Supabase - Database hosting
  • Stripe - Payments
  • Tanstack - Table
  • Typescript - Type Checking
  • Vercel - Deployment
  • Stripe - Payments
  • Zod - Schema Validation

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Environment Variables

Create a new .env file and add your keys in the following manner:

OPENAI_API_KEY=""
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
AUTH_SECRET=""
DATABASE_URL=""
NEXT_PUBLIC_PUBLISHABLE_KEY=""
STRIPE_SECRET_KEY=""
STRIPE_WEBHOOK_SECRET=""
STRIPE_WEBHOOK_LOCAL_SERCRET=""

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

quizz-ai-tutorial's People

Contributors

judygab avatar

Stargazers

omesh avatar Bathazare Paige avatar Zhaoxin Sun avatar  avatar RIDVAN ARIK avatar Dennis Asiedu avatar  avatar  avatar Paolo Bernardini avatar Віталій Копилов avatar  avatar Mehedi Hasan Siam avatar Potnuru Geeth Krishna avatar  Md. Samiul Basir avatar Mindula Madhuhansa avatar Lucas Neves Pereira avatar Manas Singh avatar  avatar Gamal Jones avatar  avatar Julie avatar Saurabh Prakash avatar Jonas Tischer avatar Bad avatar Achintya tech arrow avatar Mayur Gangwani avatar Matheus Silva avatar Raushan Jhon avatar LMG XENON avatar Euler Alvarenga avatar Pedro Nevarez avatar  avatar  avatar Pema Wangchuk avatar Nishant Chaudhari avatar Dominik Rodler avatar Mehedi Hasan Siam avatar Akarsh K. Thomas avatar Min Htet Oo avatar ManiVannan Murugesan avatar Tom Tran avatar Rodolfo Rodriguez Girbes avatar TARO ABDOUL-AZIZ avatar Leo Borlot avatar omidshabab. avatar Ahmed avatar Himanshu Chanda avatar L.C. Busby avatar Tran Phuong Nam avatar Anis Marrouchi avatar  avatar

Watchers

 avatar

quizz-ai-tutorial's Issues

Score failed to work

The handleAnswer function is wrong working on the quiz page

image

The Score increases again when you click too much on the correct answer

I just clicked correct answers and I got this

image

I did the following to solve the problem

image

In this code, I added a condition to the function's currentQuestionIndex >= score, which helped me count the score. If the question index is large or equal to the score, the score count increases to one.

May its helpful :)

Vercel demo not working

Is it just me or the vercel demo does not work ? I keep uploading PDFs but can't create any quiz.
Screenshot 2024-06-04 at 06 58 05

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.