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
Node 14
npm i
psql -U <Username> -d postgres
CREATE USER sub PASSWORD 'password' SUPERUSER;
CREATE DATABASE dev OWNER sub;
exit
npx prisma generate
npx prisma db push
npm run dev
Open http://localhost:3000 with your browser to see the result.
- postgresql 연결이 안될때
rm -f /usr/local/var/postgres/postmaster.pid
brew services restart postgresql && brew services list
- prisma 연결
//const prisma = new PrismaClient();
prisma
- schema.prisma 에 model 추가
- 자동 생성되는 relation을
Withdraw
에서withdraws
와 같이 변경 - jest.setup.js에 mocking 추가
- PR 머지 후 DB 변경 팀원에 알리기
Fill out environment variables listed on .env with production settings.