Programming/react native
-
REST API 원칙Programming/react native 2020. 11. 26. 05:20
REST API란? REST는 Representational State Transfer라는 용어의 약자로서 로이 필딩의 박사학위 논문에서 처음 등장하였다. 로이 필딩은 웹(http) 설계의 우수성에 비해 제대로 활용되어지지 못하는 모습에 안타까워하며 웹의 장점을 최대한 활용할 수 있는 아키텍처로써 REST를 발표했다. REST API 디자인 가이드 REST API 설계 시 가장 중요한 항목은 다음 2가지로 요약할 수 있다. 1. URI는 정보의 자원을 표현할 수 있어야 한다. 2. 자원에 대한 행위는 HTTP method(GET, POST, PUT, DELETE)로 표현한다. ex1) 더보기 GET/members/delete 위와 같은 표현은 REST API 설계 규칙을 적용하지 않은 표현이다. URI는..
-
Node.js와 Mysql 연동 에러Programming/react native 2020. 11. 23. 08:33
Connection.connect를 추가 후 실행을 하면 다음과 같은 오류가 발생하였다. 더보기 Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 해결책은 다음과 같았다. 1. Mysql installer 실행 2. server 옆에 위치한 reconfigure -> Auth 설정 3. legacy 선택
-
react native AVD로 구동 시 axios network errorProgramming/react native 2020. 11. 19. 03:41
node express로 서버 API를 구축한 후 axios로 데이터를 get 하려 했으나 계속해서 Netword Error가 발생하였다. https://github.com/axios/axios/issues/973 Axios doesn't work with Android (emulator) raising a Network Error · Issue #973 · axios/axios I'n new with React Native, and I was playing around with components and http ajax request, and all went fine with iOs emulator, until I thought to test on Android emulator. This is my ..