Skip to content

chef0111/physthink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhysThink - Interactive LMS powered by K2Think AI

Official repository of PhysThink - An intuitive Learning Management System built with Next.js 16, powered by K2Think V2.

Follow these steps to set up the project locally on your machine.

❕Prerequisites

Make sure you have the following installed on your machine:

Cloning the Repository

git clone https://github.com/chef0111/physthink.git
cd physthink

Installation

Install the project dependencies using bun:

# Install bun if not installed
curl -fsSL https://bun.sh/install | bash        # Linux & macOS
powershell -c "irm bun.sh/install.ps1 | iex"    # Windows

# Install dependencies
bun init # Only run this if you never used bun before
bun install

Set Up Environment Variables

Create a new file named .env in the root of your project and add the following content:

NEXT_PUBLIC_APP_URL=

# Better-Auth
BETTER_AUTH_SECRET=
BETTER_AUTH_URL=

# Google OAuth
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# GitHub OAuth
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

# Resend
RESEND_API_KEY=

# Database
DATABASE_URL=

# Arcjet
ARCJET_KEY=

# UPLOADTHING
UPLOADTHING_TOKEN=

Replace the placeholder values with your actual credentials. You can obtain these credentials by signing up on the respective websites.

This project uses PostgreSQL hosted on Neon for the database, with Prisma ORM for schema management.

Generate Prisma Client

  • Run the following command to generate the Prisma client:
bunx prisma generate

Run Database Migrations

  • To apply the database schema defined in prisma/schema.prisma, run the following command (only run when there're new changes made to the schema):
bunx prisma db push

This will create the necessary tables and indexes in your Neon database.

Run the development server with the following command:

bun run dev

Or run the production build with:

bun run next

Open http://localhost:3000 in your browser to view the project.


🚀 Happy coding!

About

PhysThink - Interactive LMS powered by K2Think AI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors