Git Product home page Git Product logo

lms-tutorial's Introduction

LMS tutorial 프로젝트

본 프로젝트는 Code With Antonio 강의 내용을 기반으로 만들어진 프로젝트입니다.

사용 기술

  • Next.js 13 (app router)
  • next-auth (auth)
  • prisma (ORM)
  • uploadthing (file upload)
  • PlanetScale (database:SQL)
  • stripe (payment)
  • shadcn-ui (ui)
  • tailwindcss (css)
  • zustand (state management)

각종 명령어 모음

stripe 결제 시스템 테스트

 listen --forward-to localhost:3000/api/webhook

prisma 관련 명령어

npx prisma generate

npx prisma migrate reset

npx prisma db push

node scripts/seed.ts

npm run dev

오류 발생시

  • prisma 타입 인식을 못하는 부분
    • prisma에서 type을 불러오지 못하는 문제
    • next, prisma, typescript 버전 을 모두 변경해보았으나 해결되지 않음
    • 아래 방법으로 해결됨 (사실상 코드에서의 변화는 없으므로, 캐싱 관련 문제로 보임)
    • 해결 방법
      • package.json 을 다른곳에 복사해둠
      • package.json, node_modules, package.lock.json 삭제
      • 수업 내용에 있는 package.json 가져와서 프로젝트에 붙여넣기
      • npm i 실행
      • package.json, node_modules, package.lock.json 삭제
      • 기존 복사해두었던 package.json 가져와서 프로젝트에 붙여넣기
      • npm i 실행
      • npx prisma generate 실행
      • 정상 작동함

lms-tutorial's People

Contributors

taehyunkim3 avatar

Watchers

 avatar

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.