본문 바로가기

전체 글174

graphql 기본 문법 정리 참고: https://academy.nomadcoders.co/courses/357405/lectures/5476213 1.기본 2.객체 3.배열 4.mutaion 5.외부api (node-fetch) 6.외부api (axios) 1.기본 type Query { name: String! # !(느낌표)는 요청했을때, resolvers에서 필수로 넘겨야 하는 값 } const resolvers = { Query: { name: () => "nicolas 2", }, }; query { name } { "data": { "name": "nicolas 2" } } 2.객체 type Nicolas { name: String! age: Int! gender: String! } type Query { person:.. 2020. 7. 3.
react.js react.js next.js graphql aws amplify 2020. 7. 3.
vue.js vs react.js angular.js, vue.js에 익숙한 front-end 개발자가 react.js를 배우는 과정. vue.js와 큰 차이점 JSX: 이질감 극복하기 예전에 jsp할 때, Scriptlet이란 것이 있었는데, 너무 가독성이 안좋아서 JSTL이 생겨났는데, JSX도 가독성이 나중에는 해결되겠지? jsp 참고 Scriptlet: JSTL: 파일 1개 안에 html, js, style을 쓸 수 없다. 다른 라이브러리를 사용해서 가능하지만, 형태는 JSX만큼 이질감이 크다. (styled-components) Component를 작성하는 방식이 class, function 두가지 방식이 있는데, 서로 사용법이 다르다. React에서는 function 사용을 권장하고 있는데, 처음 배우는 입장에서 기본 기능들은.. 2020. 6. 24.
[spring을 spring 답게] net.sf.log4jdbc.sql.jdbcapi.DriverSpy net.sf.log4jdbc.sql.jdbcapi.DriverSpy 를 사용하는 경우 다음과 같은 메시지가 출력된다. Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 아마도 custom.spring.datasource.hikari.driver-class-name=com.mysql.cj.jdbc.Driver 대신 custom.spring.datasourc.. 2020. 3. 28.
[spring을 spring 답게] spring 세팅 application.properties와 DatabaseConfiguration.class를 구현하였음에도 아래와 같은 에러가 발생하는 이유는... main class가 위치한 package의 하위 package들을 스캔하기 때문이다. 엉뚱한 곳에 DatabaseConfiguration.class를 작성하여서 scan 자체가 안된 것이다. spring boot에서 가장 기본적인 내용임에도 불구하고, 간과하고 다른 곳에서 원인을 찾고 있었다. (*.properties) 역시나 reference에는 명시되어 있다. https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using-boot-structuring-your-code 3.2.2.. 2020. 3. 27.
Vue.js global error 처리 Vue.config.errorHandler = (error) => { alert('Vue.config.errorHandler\n' + error); console.error('Vue.config.errorHandler', error); }; 2020. 3. 13.
vue-chartjs - legend align is not working. There is an align option of legend in chartjs. But it is not working in vue-chartjs. https://www.chartjs.org/docs/latest/configuration/legend.html Legend · Chart.js documentation No results matching "" www.chartjs.org reason: The latest version of chartjs is 2.9.3. vue-chartjs is using 2.8.0 of chartjs. (2019-11-19) Not mached of Document. 참고: https://stackoverflow.com/questions/55355284/chart-j.. 2019. 11. 19.
node에서 python 실행 node에서 python의 형태소 분석기를 호출하는 과정 -- 한글의 경우 print에서 깨짐이 발생하므로, 인코딩과정을 추가하였다. -- python에서 형태소 분석 결과를 print로 출력하면, node에서 출력된 string을 객체로 파싱한다. JSON.parse를 사용하려고 했지만, 파이썬에서 single quotation을 사용하기 때문에 JSON으로 포맷을 맞추지 못해서, 어쩔 수 없이 eval을 사용했다. test.js const {PythonShell} = require('python-shell'); let options = { mode: 'text', pythonPath: 'C:\\Users\\.....\\Anaconda3\\python.exe', pythonOptions: ['-u'],.. 2019. 10. 17.