front-end와 back-end 연결부분에서 에러

docker toolbox로 진행을 했는데 server 에러가 발생

docker desktop으로 재진행

OnlineJudge

해당 사이트에 들어갔을 때 요청하는 API를 확인하면서 이해하도록 하겠습니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f0a9270c-1f65-4952-bb12-b16eb0476a40/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/922220b7-b847-491b-9bc8-9fb2300c6a3c/Untitled.png

https://qduoj.com/api/problem?problem_id=4 라는 API 요청을 한 상황

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1453e461-e1ff-4da1-a40c-95ce41108dd7/Untitled.png

front-end 쪽에서 problemID를 보내면서 Problem component를 실행한다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d4f7d43b-eb59-426d-999c-5b436eb42226/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6a23692a-df6e-44e4-b83b-36632b97787e/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8957aa33-9963-445d-8267-051a792a461d/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b1392df0-b659-4c86-9f4e-5298102c3861/Untitled.png

src>pages>oj>router>routes.js

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/21bee87e-ce55-4ef8-8d28-0283fe6c8dcc/Untitled.png

src>pages>oj>api.js

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/cfab91b6-4d7c-4f4d-bdef-d759a777cf5c/Untitled.png

ajax 함수

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f27ce5be-e3ab-46e3-bc8a-b928ee749a0f/Untitled.png