Node.js/Express
-
Router ParametersNode.js/Express 2021. 11. 18. 19:54
이 글은 Express의 Router Parameters에 관한 심화 내용을 정리하였습니다. When building interfaces with Express, we will run into the pattern of expecting certain information in a requested URL and using that information to identify the data that is being requested. To give an example : app.get('/sorcerers/:sorcererName', (req, res, next) => { const sorcerer = Sorcerers[req.params.sorcererName]; res...
-
MiddlewareNode.js/Express 2021. 11. 18. 14:47
이 글은 Express의 Middleware에 관한 개념 및 사용법을 정리하기 위해 작성하였습니다. Writing code is a creative process. Programmers will be quick to differ in opinion on whether the solution to a problem should be implemented in one way or another. The problems programmers face most frequently will have several different solutions, all correct but all written differently with various factors considered. Be..
-
Express RoutesNode.js/Express 2021. 11. 14. 00:00
이 글은 Express를 이용해 Basic CRUD API를 구현하기 위해 필요한 개념 및 문법을 정리하기 위해 작성하였습니다. Express is a powerful but flexible Javascript framework for creating web servers and APIs. It can be used for everything from simple static file servers to JSON APIs to full production servers. You will be learning all the necessary skills to implement an API allowing clients to Create, Read, Update, and Del..