Skip to content

segunojo1/clarkai-fe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 25, 2026
95a5484 · · Apr 25, 2026

History

152 Commits
Sep 4, 2025
Apr 14, 2026
Nov 5, 2025
Apr 8, 2026
Apr 25, 2026
Sep 4, 2025
Apr 8, 2026
May 18, 2025
Nov 5, 2025
May 18, 2025
Apr 7, 2026
Jul 10, 2025
Apr 6, 2026
Apr 6, 2026
May 18, 2025
Sep 4, 2025
Sep 4, 2025
Sep 4, 2025

Repository files navigation

Clark

Clark AI is your personal study sidekick. Upload PDFs, chat with AI, make quizzes & flashcards, collaborate with friends, and actually enjoy learning again.ain.

Features

Smart Study Materials

  • PDF to Interactive Content
  • Summarize PDFs
  • Generate PDFS
  • Generate Flashcards
  • Generate Quizes
  • Use tags to access all features

Prerequisites

  • Node.js (v18 or later recommended)
  • npm (v9 or later) or yarn (v1.22 or later)
  • Git (for version control)
  1. Set up environment variables: Create a .env.local file in the root directory and add the following:
NEXT_PUBLIC_API_BASE_URL=your_api_base_url_here

NEXT_PUBLIC_API_BASE_URL_TWO=your_second_api_base_url_here

NEXT_PUBLIC_GOOGLE_CLIENT_ID=your_google_client_id

GOOGLE_CLIENT_SECRET=your_google_client_secret

NEXTAUTH_URL=http://localhost:3000

NEXT_PUBLIC_GOOGLE_API_KEY=your_google_api_key


# Optional, if your setup uses it

NEXT_PUBLIC_ACCESS_TOKEN=your_access_token


# Keep secrets in .env.local and never commit real values
  1. Run the development server:
npm run dev

# or
yarn devv
  1. Open your browser: Visit http://localhost:3000 to see the application in action.

Tech Stack

Frontend

  • Next.js 15
  • TypeScript
  • Tailwind CSS

Project Structure

clarkai-fe/
├── public/                  # Static files
├── src/
│   ├── app/                 # Next.js app directory
│   │   ├── (auth)/          # Authentication pages
│   │   ├── api/             # API routes
│   │   ├── dashboard/       # Main application pages
│   │   └── layout.tsx       # Root layout
│   │
│   ├── components/          # Reusable components
│   │   ├── ui/              # UI components
│   │   ├── layout/          # Layout components
│   │   └── shared/          # Shared components
│   │
│   ├── config/              # Configuration files
│   ├── constants/           # Application constants
│   ├── hooks/               # Custom React hooks
│   ├── lib/                 # Utility functions
│   ├── services/            # API services
│   ├── store/               # State management
│   ├── styles/              # Global styles
│   └── types/               # TypeScript type definitions
│
├── .eslintrc.js            # ESLint configuration
├── .gitignore              # Git ignore file
├── next.config.js          # Next.js configuration
├── package.json            # Project dependencies
└── tsconfig.json           # TypeScript configuration
# TypeScript configuration

🧪 Testing

Run the test suite with:

npm test

# or
yarn  test

Production Build

Create an optimized production build:

npm run build

# or
yarn buildd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages