Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khareyash05/lms-nextjs-13
LMS Platform using Next JS 13
https://github.com/khareyash05/lms-nextjs-13
clerk mux nextjs postgresql prisma stripe trpc typescript
Last synced: 27 days ago
JSON representation
LMS Platform using Next JS 13
- Host: GitHub
- URL: https://github.com/khareyash05/lms-nextjs-13
- Owner: khareyash05
- Created: 2024-01-04T05:46:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T06:35:27.000Z (8 months ago)
- Last Synced: 2024-04-17T18:15:50.353Z (7 months ago)
- Topics: clerk, mux, nextjs, postgresql, prisma, stripe, trpc, typescript
- Language: TypeScript
- Homepage: https://lms-nextjs13.vercel.app/
- Size: 20.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a repository for Build an LMS Platform: Next.js 13, React, Stripe, Mux, Prisma, Tailwind, MySQL
Key Features:
- Browse & Filter Courses
- Purchase Courses using Stripe
- Mark Chapters as Completed or Uncompleted
- Progress Calculation of each Course
- Student Dashboard
- Teacher mode
- Create new Courses
- Create new Chapters
- Easily reorder chapter position with drag n’ drop
- Upload thumbnails, attachments and videos using UploadThing
- Video processing using Mux
- HLS Video player using Mux
- Rich text editor for chapter description
- Authentication using Clerk
- ORM using Prisma
- MySQL database using Planetscale### Prerequisites
**Node version 18.x.x**
### Install packages```shell
npm i
```### Setup .env file
```js
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=
NEXT_PUBLIC_CLERK_SIGN_UP_URL=
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=DATABASE_URL=
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=MUX_TOKEN_ID=
MUX_TOKEN_SECRET=STRIPE_API_KEY=
NEXT_PUBLIC_APP_URL=http://localhost:3000
STRIPE_WEBHOOK_SECRET=NEXT_PUBLIC_TEACHER_ID=
```### Setup Prisma
Add MySQL Database (I used PlanetScale)
```shell
npx prisma generate
npx prisma db push```
### Start the app
```shell
npm run dev
```## Available commands
Running commands with npm `npm run [command]`
| command | description |
| :-------------- | :--------------------------------------- |
| `dev` | Starts a development instance of the app |