본문 바로가기

TIL96

Netlify html 배포하기 - package.json 추가 오늘은 친구에게 선물로 줄 개인 웹사이트를 만들었다. 최근에 인프런에서 1분코딩의 'CSS Flex&Grid'강의를 듣고 있어서 응용 겸 시작해봤다. (사진은 바꿀 예정!) 생각과 고민이 많은 친구라서 고민거리를 하나씩 적어서 나한테 보내놓으면 웹사이트에 '오늘의 고민'을 모아주기로 했다. 고민도 모아보면 종류가 있을 것이고, 지금 당장 커 보이는 고민도 일주일, 한달, 일년이 지나면 생각보다 중요하지 않은 고민이었을 수도 있다. 그냥 친구가 고민을 붙잡고 있지 않고 머릿속에서 금방 떠나 보낼 수 있게 도와주고 싶었다. 원래는 애니메이션도 넣고 더 화려하게 하고 싶었지만,,일단 시작은 심플하게 하자. 초안으로 카드형태 반응형 웹사이트를 만들었고, 기본 틀을 잡아서 netlify 로 배포했다. 배포하면서 .. 2020. 3. 5.
tag - model 수정 보호되어 있는 글 입니다. 2020. 3. 4.
TIP | vscode 맥에서 소스 코드 정렬 / prettier 사용하기 단축키: shift + option + f 2020. 2. 19.
GraphQL | Field 'email' is not defined in the input type 'UserWhereUniqueInput'. error> { Error: Variable '$where' expected value of type 'UserWhereUniqueInput!' but got: {"email":"kay@gmail.com"}. Reason: 'email' Field 'email' is not defined in the input type 'UserWhereUniqueInput'. (line 1, column 36): mutation ($data: UserUpdateInput!, $where: UserWhereUniqueInput!) solution> datamodel.prisma > userName: String! @unique email: String! @unique @unique 를 추가함. 2020. 2. 1.
JAVA | String valueOf(n) 2020.01.27(화) The java string valueOf() method converts different types of values into string. By the help of string valueOf() method, you can convert int to string, long to string, boolean to string, character to string, float to string, double to string, object to string and char array to string. https://www.javatpoint.com/java-string-valueof : 스트링값으로 변환해주는 메소드. char array->string 도 가능하다. publ.. 2020. 1. 28.
TIL D-09 throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn)) 에러: throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn)) ^ TypeError: Router.use() requires a middleware function but got a Object 해결방법: //api.js 파일에 아래 코드 추가 module.exports = router; 참고: https://stackoverflow.com/questions/27465850/typeerror-router-use-requires-middleware-function-but-got-a-object 2020. 1. 14.