npm, node
pnpm 설치 : npm install -g pnpm
프로젝트 설치( t3) : pnpm create t3-app@latest notetaker
데이터베이스 설치( SuperBase)
IDE로 프로젝트 로드( VScode)
prisma 스키마에 postgresql 설정
.env 파일에 데이터베이스 url 등록
터미널에서 db push : pnpm prisma db push
dev
Client ID 7******************9
Client secrets 6**************************************d
prod*( 임시 url로 지정 후 나중에 vercel에서 도메인 생성 후 실제 url로 수정)*
Client ID 5******************b
Client secrets 9**************************************d
.env.mjs
에서 기본 튜토리얼 key인 DISCORD를 github으로 수정하고 터미널에서 github인증을 등록한다export GITHUB_CLIENT_ID= “7******************9
”
export GITHUB_CLIENT_SECRET= “6**************************************d
”
.env
에서 Next Auth의 암호를 생성( 주석 가이드 따라하기)하고 등록한다.터미널에서 pnpm dev
브라우저에서 http://localhost:3000/
로그인 성공 확인
github : 레파지토리 생성 https://github.com/normalstory/notetaker
local : 기존 파일을 git에 추가 git add -A
local stage로 commit git commit -m "first commit”
원격 설정 git remote add origin <https://github.com/normalstory/notetaker.git
>
github에 업로드 git push -u origin main
github 연동
.env 파일 등 환경 변수 설정 *prod용으로 등록( github, Next Auth url )
github 로그인 확인
1. GUI 세팅: Daisy
설치 pnpm add daisyui @tailwindcss/typography -D
tailwind.config.ts 파일에서 plugins: [] 안에
설정 값 추가 require("@tailwindcss/typography", require("daisyui")
2. 데이터 테이블 세팅: Adding Tables
3. 백-엔드 세팅
4. 프론트-엔드 세팅: Querying TRPC
5 Adding A Header
Re-Deploying The App To Verce
The way that we do that is we send it off to GitHub.
git add -A