+ it dev nextjs How can I separate data layer from Next.js API routes? wono | discuss | tweet + it qa arc "Service" or "Repository" -- Naming is hard! ยท Issue #14 ยท brianegan/new_flutter_templateMany apps talk to external data sources via some kind of "Data Layer." Some folks call these Data Layer objects "Repositories," while others call these same type of objects "Services." Which makes the most sense or feels the most univers... wono | discuss | tweet + it dev javascript module ๐ฆ JavaScript Module System์๋ฐ์คํฌ๋ฆฝํธ์ ๋ชจ๋ ์์คํ (ESM, CommonJS, AMD) wono | discuss | tweet + it dev nextjs inject OOP and Dependency Injection in NextJsInversion of Control with InversifyJs in NextJs wono | discuss | tweet + it dev express inject Express๋ฅผ NestJS์ฒ๋ผ ์ฌ์ฉํ๊ธฐ (feat. InversifyJS)MVC ํจํด์ด๋? wono | discuss | tweet + it dev express inject The Controller-Service-Repository Pattern: A Comprehensive GuideIntroduction In modern software development, creating scalable, maintainable, and testable applications is paramount. One architectural pattern that helps achieve these goals is the Controller-Service-Repository (CSR) pattern. wono | discuss | tweet + it dev nextjs cors Using CORS in Next.js to handle cross-origin requests - LogRocket BlogThere are several ways to configure CORS in Next.js. Let's look at how to use the most critical headers to make your site more secure. wono | discuss | tweet + it dev nextjs Next.js ๊ฐ๋ฐ ์์ฒญ์ฌํญ1. Routing ์ ์ฑ - App Router๋ฅผ ์ฐ๋์ง ๊ทธ๋ ๋ค๋ฉด use client๋ฅผ ์จ์ผํ๋ ์ํฉ - App Router vs. Page Router โ App Router ๋ฐฉ์์ ์ฌ์ฉํฉ๋๋ค. ๊ณต์๋ฌธ์: https://nextjs.org/docs#app-router-vs-pages-router App Router์์๋ streaming๊ณผ ๊ฐ์ ์ต์ React ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์๋ ์ด์ ์ด ์์ต๋๋ค. Next.js 13.3๊น์ง Page Router ๋ฐฉ์์ ์ฌ์ฉํ๊ณ App Router๋ ๋ฒ ํ ๋จ๊ณ์๊ณ , Next.js 13.4๋ถํฐ App Router๊ฐ ์ ์ ๋ฒ์ ์ผ๋ก ์ฑํ๋์์ต๋๋ค. App Router์ ๊ฐ์ฅ ํฐ ๋ณํ๋ RSC(React Server Component)๋ฅผ default๋ก ์ฐ๊ณ ์๋ค๋ ์ ์ ๋๋ค.. wono | discuss | tweet + it dev nextjs request Access Request Object in New App Directory Page Route ยท vercel/next.js ยท Discussion #42732Access Request Object in New App Directory Page Route wono | discuss | tweet + it dev nextjs how to get the client Ip address in app router? ยท vercel/next.js ยท Discussion #55037how to get the client Ip address in app router? wono | discuss | tweet + it dev nextjs zustand Setup with Next.js - Zustand wono | discuss | tweet + it dev nextjs Next.js 14 ๊ฐ์ข 1ํธ. ๋ผ์ฐํ ์ ๋ชจ๋ ๊ฒNext.js 14 ๊ฐ์ข 1ํธ. ๋ผ์ฐํ ์ ๋ชจ๋ ๊ฒ wono | discuss | tweet + it dev nestjs todo NestJS ๋ก Todo App ๋ง๋ค๊ธฐ์ ์ฌ์ง์ ๊ณผ์ ๋ก ์ ์ถํ Todo ํ๋ก์ ํธ์ ๋๋ค. ํ์คํ์ผ๋ก ์ผ์ฃผ์ผ๊ฐ ๊ตฌํํ์ต๋๋ค. wono | discuss | tweet + it dev spring Spring Guide - Directory - Yun Blog | ๊ธฐ์ ๋ธ๋ก๊ทธYun Blog | ๊ธฐ์ ๋ธ๋ก๊ทธ wono | discuss | tweet + it dev nextjs controller GitHub - ayonli/next-controller: Elegant API/MVC controller wrapper for Next.js framework.Elegant API/MVC controller wrapper for Next.js framework. - ayonli/next-controller wono | discuss | tweet + it arc domain ๋๋ฉ์ธ ์ฃผ๋ ์ค๊ณ์ MSA: ๋ผ์ดํ ์ฌ์ดํด์ ๊ธฐ์ค์ผ๋ก ํ ๋๋ฉ์ธ ๋ถ๋ฆฌ์ด ๊ธ์์๋ ๋๋ฉ์ธ ์ฃผ๋ ์ค๊ณ์ MSA๋ฅผ ๋ผ์ดํ ์ฌ์ดํด์ ๊ธฐ์ค์ผ๋ก ๋๋ฉ์ธ์ ๋ถ๋ฆฌํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์ค๋ช ํฉ๋๋ค. ์ด๋ฅผ ํตํด ๋ณต์กํ ์์คํ ์ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌํ๊ณ , ์ ์ง๋ณด์์ฑ์ ๋์ผ ์ ์์ต๋๋ค. wono | discuss | tweet + it dev nestjs NestJS ํด๋๊ตฌ์กฐ๋ ์ ์ด๋ ๊ฒ ๊ตฌ์ฑ๋์์๊น?NestJS๊ฐ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ๊ณตํ๋ ํด๋๊ตฌ์กฐ๋ ์ด๋ค ์ฒ ํ์ด ์กด์ฌํ ๊น!NestJS์์๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์๋์ ๊ฐ์ ํด๋ ๊ตฌ์กฐ๋ฅผ ๋ณด์ฌ์ค๋ค.NestJS๋ ๋ชจ๋ํ์ ์์กด์ฑ ์ฃผ์ (Dependency Injection)์ ๊ฐ์กฐํ์ฌ ์ ํ๋ฆฌ์ผ์ด์ ์ ํ์ฅ์ฑ๊ณผ ์ ์ง๋ณด์์ฑ์ ํฅ์์ํจ๋ค๊ณ ๋งํ๋ค wono | discuss | tweet + ์ฐฝ์ ํ๊ณ ํ๋ก์ ํธ qwer QWER.GG ๋ฅผ ๋ ๋๋ณด๋ด๋ฉฐ0. Let it go ์๋ 12์๋ถํฐ ์ง๋ 2๊ฐ์ ๊ฐ์ ์ ๋ง ๊ฐ์ ์ ์ผ๋ก๋ ์ฒด๋ ฅ์ ์ผ๋ก๋ ํ๋ ๋ ๋ค์ ์ฐ์์ด์๋ค. ์๋ก์ด ์ฌ๋๋ค์ ๊ฑฐ์ ๊ฐ์ ๋ก ๋ง๋ฌ์ด์ผ ํ๊ณ , ๋ง๋ ๋๋ง๋ค ์ฆ๊ฑฐ์ด ์ด์ผ๊ธฐ๋ณด๋ค๋ ํ๋ ์ด์ผ๊ธฐ๋ค์ ํด์ผ๋ง ํ๋ค. ๋๋ QWER.GG ๋ฅผ ๋งค๊ฐํ๊ฑฐ๋, ํฌ์์ฒ๋ฅผ ์ฐพ์์ด์ผ ํ๊ณ ์๊ฐ์ ์ธ ์ฌ์ ๋ ๋งค์ฐ ๋ถ์กฑํ๋ค. ์ฐ๋ฆฌ์ ๊ฒฐ์ ์ด๋ ๊ทธ ๊ณผ์ ์ด ๋ง์กฑ์ค๋ฌ์ธ ๋ฆฌ๋ ์์ง๋ง ์ด์ ์ด๋์ ๋ ๋ง๋ฌด๋ฆฌ๊ฐ wono | discuss | tweet + it dev nestjs [NestJS] NestJS API ๋ง๋ค๊ธฐ(movies controller, router, service, DTO) (2)Movies ์ปจํธ๋กค๋ฌ ์์ฑํ๊ธฐ (nest g co ๋ช ๋ น์ด) nest ๋ช ๋ น์ด๋ฅผ ํตํด ์ํ api์ ํ์ํ ์๋ก ํ์ํ ์ปจํธ๋กค๋ฌ๋ฅผ genereate ํด์ค๋ค. controller์ alias๋ 'co' ์ด๋ฏ๋ก nest g co ์ด๋ฐ ์์ผ๋ก ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ๋ค. controller์ ์ด๋ฆ์ ์ ๋ ฅํ๋ฉด ๋ฐ์ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ด ํ์ผ์ด ์๋ก ์๊ฒจ๋๋ค. import { Module } from '@nestjs/common'; import { MoviesController } from './movies/movies.controller'; @Module({ imports: [], controllers: [MoviesController], providers: [], }) export class AppModule {} ๋ค์๊ณผ ๊ฐ์ด ์.. wono | discuss | tweet + it dev kysely rawquery Splitting query building and execution | KyselyKysely is primarily a type-safe sql query builder. wono | discuss | tweetNext
+ it qa arc "Service" or "Repository" -- Naming is hard! ยท Issue #14 ยท brianegan/new_flutter_templateMany apps talk to external data sources via some kind of "Data Layer." Some folks call these Data Layer objects "Repositories," while others call these same type of objects "Services." Which makes the most sense or feels the most univers... wono | discuss | tweet
+ it dev javascript module ๐ฆ JavaScript Module System์๋ฐ์คํฌ๋ฆฝํธ์ ๋ชจ๋ ์์คํ (ESM, CommonJS, AMD) wono | discuss | tweet
+ it dev nextjs inject OOP and Dependency Injection in NextJsInversion of Control with InversifyJs in NextJs wono | discuss | tweet
+ it dev express inject Express๋ฅผ NestJS์ฒ๋ผ ์ฌ์ฉํ๊ธฐ (feat. InversifyJS)MVC ํจํด์ด๋? wono | discuss | tweet
+ it dev express inject The Controller-Service-Repository Pattern: A Comprehensive GuideIntroduction In modern software development, creating scalable, maintainable, and testable applications is paramount. One architectural pattern that helps achieve these goals is the Controller-Service-Repository (CSR) pattern. wono | discuss | tweet
+ it dev nextjs cors Using CORS in Next.js to handle cross-origin requests - LogRocket BlogThere are several ways to configure CORS in Next.js. Let's look at how to use the most critical headers to make your site more secure. wono | discuss | tweet
+ it dev nextjs Next.js ๊ฐ๋ฐ ์์ฒญ์ฌํญ1. Routing ์ ์ฑ - App Router๋ฅผ ์ฐ๋์ง ๊ทธ๋ ๋ค๋ฉด use client๋ฅผ ์จ์ผํ๋ ์ํฉ - App Router vs. Page Router โ App Router ๋ฐฉ์์ ์ฌ์ฉํฉ๋๋ค. ๊ณต์๋ฌธ์: https://nextjs.org/docs#app-router-vs-pages-router App Router์์๋ streaming๊ณผ ๊ฐ์ ์ต์ React ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์๋ ์ด์ ์ด ์์ต๋๋ค. Next.js 13.3๊น์ง Page Router ๋ฐฉ์์ ์ฌ์ฉํ๊ณ App Router๋ ๋ฒ ํ ๋จ๊ณ์๊ณ , Next.js 13.4๋ถํฐ App Router๊ฐ ์ ์ ๋ฒ์ ์ผ๋ก ์ฑํ๋์์ต๋๋ค. App Router์ ๊ฐ์ฅ ํฐ ๋ณํ๋ RSC(React Server Component)๋ฅผ default๋ก ์ฐ๊ณ ์๋ค๋ ์ ์ ๋๋ค.. wono | discuss | tweet
+ it dev nextjs request Access Request Object in New App Directory Page Route ยท vercel/next.js ยท Discussion #42732Access Request Object in New App Directory Page Route wono | discuss | tweet
+ it dev nextjs how to get the client Ip address in app router? ยท vercel/next.js ยท Discussion #55037how to get the client Ip address in app router? wono | discuss | tweet
+ it dev nextjs Next.js 14 ๊ฐ์ข 1ํธ. ๋ผ์ฐํ ์ ๋ชจ๋ ๊ฒNext.js 14 ๊ฐ์ข 1ํธ. ๋ผ์ฐํ ์ ๋ชจ๋ ๊ฒ wono | discuss | tweet
+ it dev nestjs todo NestJS ๋ก Todo App ๋ง๋ค๊ธฐ์ ์ฌ์ง์ ๊ณผ์ ๋ก ์ ์ถํ Todo ํ๋ก์ ํธ์ ๋๋ค. ํ์คํ์ผ๋ก ์ผ์ฃผ์ผ๊ฐ ๊ตฌํํ์ต๋๋ค. wono | discuss | tweet
+ it dev spring Spring Guide - Directory - Yun Blog | ๊ธฐ์ ๋ธ๋ก๊ทธYun Blog | ๊ธฐ์ ๋ธ๋ก๊ทธ wono | discuss | tweet
+ it dev nextjs controller GitHub - ayonli/next-controller: Elegant API/MVC controller wrapper for Next.js framework.Elegant API/MVC controller wrapper for Next.js framework. - ayonli/next-controller wono | discuss | tweet
+ it arc domain ๋๋ฉ์ธ ์ฃผ๋ ์ค๊ณ์ MSA: ๋ผ์ดํ ์ฌ์ดํด์ ๊ธฐ์ค์ผ๋ก ํ ๋๋ฉ์ธ ๋ถ๋ฆฌ์ด ๊ธ์์๋ ๋๋ฉ์ธ ์ฃผ๋ ์ค๊ณ์ MSA๋ฅผ ๋ผ์ดํ ์ฌ์ดํด์ ๊ธฐ์ค์ผ๋ก ๋๋ฉ์ธ์ ๋ถ๋ฆฌํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์ค๋ช ํฉ๋๋ค. ์ด๋ฅผ ํตํด ๋ณต์กํ ์์คํ ์ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌํ๊ณ , ์ ์ง๋ณด์์ฑ์ ๋์ผ ์ ์์ต๋๋ค. wono | discuss | tweet
+ it dev nestjs NestJS ํด๋๊ตฌ์กฐ๋ ์ ์ด๋ ๊ฒ ๊ตฌ์ฑ๋์์๊น?NestJS๊ฐ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ๊ณตํ๋ ํด๋๊ตฌ์กฐ๋ ์ด๋ค ์ฒ ํ์ด ์กด์ฌํ ๊น!NestJS์์๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์๋์ ๊ฐ์ ํด๋ ๊ตฌ์กฐ๋ฅผ ๋ณด์ฌ์ค๋ค.NestJS๋ ๋ชจ๋ํ์ ์์กด์ฑ ์ฃผ์ (Dependency Injection)์ ๊ฐ์กฐํ์ฌ ์ ํ๋ฆฌ์ผ์ด์ ์ ํ์ฅ์ฑ๊ณผ ์ ์ง๋ณด์์ฑ์ ํฅ์์ํจ๋ค๊ณ ๋งํ๋ค wono | discuss | tweet
+ ์ฐฝ์ ํ๊ณ ํ๋ก์ ํธ qwer QWER.GG ๋ฅผ ๋ ๋๋ณด๋ด๋ฉฐ0. Let it go ์๋ 12์๋ถํฐ ์ง๋ 2๊ฐ์ ๊ฐ์ ์ ๋ง ๊ฐ์ ์ ์ผ๋ก๋ ์ฒด๋ ฅ์ ์ผ๋ก๋ ํ๋ ๋ ๋ค์ ์ฐ์์ด์๋ค. ์๋ก์ด ์ฌ๋๋ค์ ๊ฑฐ์ ๊ฐ์ ๋ก ๋ง๋ฌ์ด์ผ ํ๊ณ , ๋ง๋ ๋๋ง๋ค ์ฆ๊ฑฐ์ด ์ด์ผ๊ธฐ๋ณด๋ค๋ ํ๋ ์ด์ผ๊ธฐ๋ค์ ํด์ผ๋ง ํ๋ค. ๋๋ QWER.GG ๋ฅผ ๋งค๊ฐํ๊ฑฐ๋, ํฌ์์ฒ๋ฅผ ์ฐพ์์ด์ผ ํ๊ณ ์๊ฐ์ ์ธ ์ฌ์ ๋ ๋งค์ฐ ๋ถ์กฑํ๋ค. ์ฐ๋ฆฌ์ ๊ฒฐ์ ์ด๋ ๊ทธ ๊ณผ์ ์ด ๋ง์กฑ์ค๋ฌ์ธ ๋ฆฌ๋ ์์ง๋ง ์ด์ ์ด๋์ ๋ ๋ง๋ฌด๋ฆฌ๊ฐ wono | discuss | tweet
+ it dev nestjs [NestJS] NestJS API ๋ง๋ค๊ธฐ(movies controller, router, service, DTO) (2)Movies ์ปจํธ๋กค๋ฌ ์์ฑํ๊ธฐ (nest g co ๋ช ๋ น์ด) nest ๋ช ๋ น์ด๋ฅผ ํตํด ์ํ api์ ํ์ํ ์๋ก ํ์ํ ์ปจํธ๋กค๋ฌ๋ฅผ genereate ํด์ค๋ค. controller์ alias๋ 'co' ์ด๋ฏ๋ก nest g co ์ด๋ฐ ์์ผ๋ก ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ๋ค. controller์ ์ด๋ฆ์ ์ ๋ ฅํ๋ฉด ๋ฐ์ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ด ํ์ผ์ด ์๋ก ์๊ฒจ๋๋ค. import { Module } from '@nestjs/common'; import { MoviesController } from './movies/movies.controller'; @Module({ imports: [], controllers: [MoviesController], providers: [], }) export class AppModule {} ๋ค์๊ณผ ๊ฐ์ด ์.. wono | discuss | tweet
+ it dev kysely rawquery Splitting query building and execution | KyselyKysely is primarily a type-safe sql query builder. wono | discuss | tweet