전체 글 515

Create a simple React component that displays a message passed as a prop.

In this response, I'll guide you through creating a simple React component that displays a message passed as a prop, breaking down each step with an analogy to make the process clear and understandable.The Big PictureImagine you're building a small sign that can display different messages. The message on the sign can be changed by providing a new message. In React, we create components to build ..

GitLab CICD로 쉽고 강력한 자동화 파이프라인 구축하기 🚀

요약: GitLab CI/CD는 코드 저장소와 통합된 내장형 자동화 도구로, .gitlab-ci.yml 파일 하나로 전체 소프트웨어 개발 파이프라인을 정의하고 실행할 수 있습니다. 빌드, 테스트, 배포를 자동화하여 개발 효율성을 높이고 지속적인 품질 유지가 가능합니다. 이 글에서는 GitLab CI/CD의 기본 개념부터 실제 구성 방법, 최적화 전략까지 단계별로 설명합니다.GitLab CI/CD가 뭔가요? 🤔여러분의 소프트웨어 개발 과정을 자동화된 조립 라인처럼 상상해보세요.개발자가 만든 코드가자동으로 테스트되고, 빌드되고, 배포되는 과정GitLab CI/CD는 바로 이런 자동화된 파이프라인을 쉽게 구축할 수 있게 해주는 도구입니다!CI(Continuous Integration): 코드 변경사항을 자동..

100===Dev Ops/Git 2024.06.11

Provide an example of when you would use an API route in Next.js.

An API route in Next.js is used to create serverless functions that handle backend logic, such as fetching data from a database or an external API, without the need for a separate backend server.The Big PictureImagine you have a vending machine (your application) that provides different types of snacks (data). An API route in Next.js acts like the internal mechanism of the vending machine, handl..

Why not just use Express.js Templating Engine instead of using something like react for the frontend. Why do we use react?

While templating engines like EJS are great for generating dynamic server-rendered HTML, React offers a more powerful and flexible approach to building interactive and dynamic user interfaces by utilizing client-side rendering and component-based architecture.The Big PictureThink of traditional templating engines as a well-organized library where you can find and read static books (server-render..

What is the role of a templating engine in an Express.js application?

In an Express.js application, a templating engine generates HTML dynamically, allowing you to embed variables and logic within your HTML pages for dynamic content rendering.The Big PictureThink of a templating engine like a master chef who can prepare a variety of dishes (web pages) from a standard set of ingredients (data). Instead of creating static HTML pages for every possible outcome, the t..

What are the main responsibilities of middleware functions in Express.js?

Middleware functions in Express.js are the backbone of handling requests and responses in a web application, enabling flexible and efficient request processing.The Big PictureImagine building a house. Middleware functions in Express.js are like different workers (plumbers, electricians, carpenters) that prepare the house at various stages before it's ready for the occupants (the users). Each wor..

TIL 2024-06-11

- AWS S3, EC2 사용에 필요한 가격 정책을 알게되었다. 기본적으로 내부로 파일을 옮기거나 담을 때는 비용이 없지만, 컴퓨팅 리소스 사용, 스토리지 사용, 로드 밸런싱 사용 등 가격 정책이 매우 세분화되어 있고 cost explorer 이를 확인할 수 있다.  - 서버 관리는 docker에 컨테이너를 사용해야 관리가 더 용이하고 명확하다. nextjs 배포 및 연동 플랫폼으로 오픈 소스인 coolify 사용을 검토해봤는데 인기가 많고 실무에서 쓰는 케이스가 있어서 사용하기로 결정했다. vercel은 초기 비용은 싸지만 규모가 커지면서 기하 급수적인 비용이 발생한다. docker 가 사용하는 프로세스와 용량 등도 확인이 가능하고. 컨테이너는 실제로 사용하는 용량이 ~10mb 단위지만 이미지가 보통은..

728x90
반응형