Skip to content

younginch/subcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sub

CI Playwright Tests Maintainability Test Coverage codecov

Getting Started

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

Install Dependency

Node 14

npm i

Database

psql -U <Username> -d postgres
CREATE USER sub PASSWORD 'password' SUPERUSER;
CREATE DATABASE dev OWNER sub;
exit
npx prisma generate
npx prisma db push

Run

npm run dev

Open http://localhost:3000 with your browser to see the result.

Guide to develop

  • postgresql 연결이 안될때
rm -f /usr/local/var/postgres/postmaster.pid
brew services restart postgresql && brew services list
  • prisma 연결
//const prisma = new PrismaClient();
prisma

Adding new models on DB

  1. schema.prisma 에 model 추가
  2. 자동 생성되는 relation을 Withdraw 에서 withdraws 와 같이 변경
  3. jest.setup.js에 mocking 추가
  4. PR 머지 후 DB 변경 팀원에 알리기

Deploy on Vercel

env

Fill out environment variables listed on .env with production settings.