inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

multi search api 궁금한점

미해결

따라하며 배우는 리액트 A-Z[19버전 반영]

해당 api는 search term과 일치하는 tv shows와 movies 전부 불러오는 건가요?

  • tdd
  • react
  • typescript
  • redux
  • Next.js
김창호 댓글 1 좋아요 0 조회수 191

1:20 부근 질문 있습니다

해결됨

홍정모의 따라하며 배우는 C++

교수님께서 const는 붙일 수 있으면 붙이는게 좋다는 말씀을 하셨는데요 이전 강의인 산술 연산자 오버로딩과 입출력 연산자 오버로딩에서는 const를 붙이지 않다가 이번 단항 연산자 오버로딩에서는 const를 붙이신 이유가 궁금합니다.

  • C++
thd2tn 댓글 1 좋아요 0 조회수 200

<p th> 태그 안에 있는 텍스트는 왜 나타나지 않는 건가요?

미해결

스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술

안녕하세요. 강의 내용 중 <p th> 태그 안에 있는 "안녕하세요. 손님" 이라는 텍스트는 왜 나타나지 않는 건가요?

  • MVC
  • spring-boot
  • spring
  • java
조동일 댓글 1 좋아요 0 조회수 346

데이터 집합레벨 이해의 중요성

미해결

데이터 분석 SQL Fundamentals

강의를 들으면서 데이터 집합 레벨 개념을 처음 알게 되었고, join의 결과가 어떤 집합의 레벨을 갖게 되는지까지 이해를 하였습니다. 그런데 join의 과정에 집합 레벨을 이해하는게 어떤 식으로 도움이 되는지까지는 이해가 어렵습니다. 집합 레벨을 고려하면서 쿼리를 짜는 것이 join을 많이 하더라도 요구사항에 부합한 정확한 결과를 도출하는데 도움이 되기 때문에 집합 레벨을 이해해야하는 것이 맞을까요?

  • DBMS/RDBMS
  • sql
  • postgresql
가나파이 댓글 1 좋아요 1 조회수 308

OrderService에서 빨간줄 ㅠㅠ

미해결

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

4분쯤에 있는 주문생성 부분입니다 비슷한 오류가 import를 잘못해 생긴 것이라는 걸 보고 repository쪽이랑 service쪽을 살펴봤습니다 javax... 가 아니라 jpashop.domain의 Order를 import 하고 있는데 왜 그런지 모르겠습니다 ㅠㅠ Order 클래스의 createOrder메소드의 마지막 파라미터가 OrderItem... orderItems인데 강의에서 orderItem이 들어가는 이유도 잘 모르겠어요 ㅠㅠ

  • java
  • 웹앱
  • JPA
  • spring
  • spring-boot
강민승 댓글 1 좋아요 0 조회수 347

리액트에서 똑같이 만든다면 어떻게 만들어야할까요?

미해결

몇 줄로 끝내는 인터랙티브 웹 개발 노하우 [초급편]

일단 이런식으로 시도는했는데, 안되서요... 그리고 현업에서 인터랙티브 만들때, 그냥 js쓰나요? 리액트,뷰 앵글러안쓰고..? 그리고 전 선생님 강의 리액트 적용하고싶은데, 선생님의 모든강의 리액트에 적용가능할까요???

  • javascript
  • 인터랙티브-웹
jk k 댓글 3 좋아요 0 조회수 431

로그인 500 오류

미해결

[리뉴얼] React로 NodeBird SNS 만들기

const express = require('express') const bcrypt = require('bcrypt') const { User } = require('../models') const passport = require('passport') const router = express.Router(); router.post('/login', (req, res, next) => { passport.authenticate('local', (err, user, info) => { if(err){ console.error(err) return next(err) } if(info){ return res.status(401).send(info.reason); } return req.login(user, async(loginErr)=>{ if(loginErr) { console.error(loginErr) return next(loginErr) } return res.status(200).json(user) }) })(req, res, next) }) router.post('/', async (req, res, next) => { try { const exUser = await User.findOne({ where: { email: req.body.email, } }); if (exUser) { return res.status(403).send('이미 사용 중인 아이디입니다.'); } const hashedPassword = await bcrypt.hash(req.body.password, 12); await User.create({ email: req.body.email, nickname: req.body.nick, password: hashedPassword, }); res.status(201).send('ok'); } catch (error) { console.error(error); next(error); // status 500 } }) router.get('/', (req, res, next) => { res.send('유저 페이지') }) module.exports = router; const passport = require('passport') const local = require('./local') const { User } = require('../models') module.exports = () => { passport.serializeUser((user, done) => { done(user.id) }) passport.deserializeUser(async (id, done) => { try{ const user = await User.findOne({ where: { id } }) done(null, user) }catch(error){ console.error(error) done(error) } }) local(); } const passport = require('passport') const { Strategy: LocalStrategy } = require('passport-local') const bcrypt = require('bcrypt') const { User } = require('../models') module.exports = () => { passport.use(new LocalStrategy({ usernameField: 'email', passwrodField: 'password', }, async (email, password, done) => { try { const user = await User.findOne({ where: { email } }) if (!user) { done(null, false, { reason: '존재하지 않는 이메일 입니다!' }) } const result = await bcrypt.compare(password, user.password) if (result) { return done(null, user) } return done(null, false, { reson: '비밀번호가 틀렸습니다.' }) } catch (error) { console.error(error); return done(error); } })); } const express = require('express'); const postRouter = require('./routes/post') const userRouter = require('./routes/user') const db = require('./models'); const { urlencoded } = require('express'); const app = express(); const cors = require('cors') const passportConfig = require('./passport'); const passport = require('passport'); const session = require('express-session') const cookieParser = require('cookie-parser') const dotenv = require('dotenv') dotenv.config(); db.sequelize.sync() .then(() => { console.log('db 연결성공') }) .catch(console.error) passportConfig(); app.use(cors({ origin: '*' })) app.use(express.json()) app.use(express.urlencoded({ extended: true })) app.use(cookieParser('nodebirdsecret')) app.use(session({ saveUninitialized: false, resave: false, secret: process.env.COOKIE_SECRET })) app.use(passport.initialize()) app.use(passport.session()); app.get('/', (req, res) => { res.send('hello express') }) app.get('/api', (req, res) => { res.send('hello express') }) app.get('/api/posts', (req, res) => { res.json([ { id: 1, content: 'hello' }, { id: 2, content: 'hello1' }, { id: 3, content: 'hello2' }, ]); }); app.use('/post', postRouter) app.use('/user', userRouter) app.listen(3065, () => { console.log('서버 실행중!!') }); 회원가입 로직은 잘 작동되는데 로그인기능이 안돼는 코드 한번 봐주실수 있으실까요? 201통신이 하나 오는건 또 무엇인지... 500으로 오류가 나오더라구요 그 다음에

  • redux
  • nodejs
  • react
  • express
  • Next.js
uphoon 댓글 1 좋아요 0 조회수 274

질문이 있어서 글 남깁니다!

미해결

[파이토치] 실전 인공지능으로 이어지는 딥러닝 - 기초부터 논문 구현까지

프로젝트를 진행하면서 이 강의를 수강하고 있습니다. 아무리 학습을 시켜도 Test-accurary 가 0.68~0.69 을 넘어가지 못하고 loss가 2.8 정도로 찍히는데 더 학습을 시켜야 할까요 아니면 코드를 수정해야 할까요.. ㅠㅠ 대략적인 코드 첨부합니다!

  • pytorch
  • 머신러닝 배워볼래요?
  • 딥러닝
  • 인공신경망
  • python
102132 댓글 1 좋아요 0 조회수 229

강의 소스코드가 안보입니다

미해결

파이썬 웹서비스API 실전 프로젝트 - 돈 버는 디지털마케팅

선생님 www.creapple.com 해당사이트에 로그인해봐도 강의 자료가 안보입니다 어디서 받을수있는지 알려주시면 감사하겠습니다

  • 디지털 마케팅
  • python
  • 웹-크롤링
  • 웹앱
  • flask
가후 댓글 0 좋아요 0 조회수 294

혹시 실무에서는 칼럼에 comment를 달아서 관리하나요?

미해결

데이터 분석 SQL Fundamentals

칼럼명만 가지고 이게 어떤 의미인지 바로 파악이 어려운데, 보통 실무에서는 한글로 어떤 의미인지 comment를 달아놓나요?

  • DBMS/RDBMS
  • sql
  • postgresql
가나파이 댓글 2 좋아요 0 조회수 354

SecurityFilterChain 으로 하시는 분들께 제코드 공유해요!

미해결

스프링 시큐리티

혹시 더 나은 방식이 있다면 같이 공유해요!! 다들 화이팅하세요! @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("/").permitAll() .antMatchers( "/css/**", "/js/**", "/images/**", "/webjars/**", "/favicon.*", "/*/icon-*" ).permitAll() .antMatchers("/mypage").hasRole("USER") .antMatchers("/message").hasRole("MANAGER") .antMatchers("/config").hasRole("ADMIN") .anyRequest().authenticated(); http .formLogin(); return http.build(); }

  • Spring Security
  • java
  • spring-boot
김동운 댓글 1 좋아요 6 조회수 2808

@EnableFeignClients 어노테이션 인식 안됨

미해결

Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)

강사님 안녕하세요! 강사님 덕분에 매우 많이 배워나가고 있습니다. 아무리 구글링을 해도 해결책을 찾지 못해 질문드리게 되었습니다. 메이븐을 돌려도 에러는 안 나는데 @EnableFeignClients 를 호출할 수 없는 오류가 계속 발생하여 질문드립니다. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.3</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.inflearn</groupId> <artifactId>user-service</artifactId> <version>0.0.1-SNAPSHOT</version> <name>user-service</name> <description>Demo project for Spring Boot</description> <properties> <java.version>11</java.version> <spring-cloud.version>2021.0.3</spring-cloud.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!-- h2 --> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>2.1.214</version> <scope>runtime</scope> </dependency> <!-- Validation --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> <version>2.7.3</version> </dependency> <!-- JPA --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <version>2.7.3</version> </dependency> <!-- ModelMapper --> <dependency> <groupId>org.modelmapper</groupId> <artifactId>modelmapper</artifactId> <version>3.1.0</version> </dependency> <!-- Spring Security --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> <version>2.7.3</version> </dependency> <!-- JWT --> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.9.1</version> </dependency> <!-- Config Server와 연동하기 위함, config --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency> <!-- Config Server와 연동하기 위함, bootstrap (서버 재기동) --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency> <!-- Config Server와 연동하기 위함, Actuator (서버 재기동 x) --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <!-- AMQP --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId> </dependency> <!-- openfeign --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${parent.version}</version> <configuration> <excludes> <exclude> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclude> </excludes> </configuration> </plugin> </plugins> </build> </project>

  • spring-boot
  • architecture
  • JPA
  • spring-cloud
  • msa
  • Kafka
호랑이 댓글 2 좋아요 0 조회수 940

setState 함수의 동작에 대해 질문있습니다(3)

미해결

처음 배우는 리액트 네이티브

아래 코드를 실행하고 찍힌 로그를 확인하면 다음과 같습니다. const Counter = () => { const [count, setCount] = useState(0); return ( <> <StyledText>count : {count}</StyledText> <Button title='+' onPress={() => { console.log('set 카운트1 전 count : ' + count); setCount(count => { console.log('count1 : ' + count); return count + 1 }); console.log('set 카운트1 후 count : ' + count); setCount(count => { console.log('count2 : ' + count); return count + 1 }); console.log('set 카운트2 후 count : ' + count); }}/> </> ) } set 카운트1 전 count : 0 count1 : 0 set 카운트1 후 count : 0 set 카운트2 후 count : 0 count2 : 1 set 카운트1 전 count : 2 set 카운트1 후 count : 2 set 카운트2 후 count : 2 count1 : 2 count2 : 3 set 카운트1 전 count : 4 set 카운트1 후 count : 4 set 카운트2 후 count : 4 count1 : 4 count2 : 5 질문 : count1 : 0 로그가 찍힌걸로 보아 첫번째 setCount가 실행이 되었으므로 count가 1로 바뀌어야하고 그 이후에 실행된 set 카운트1 후 로그는 count가 1이 되어야 맞을 것 같은데 그렇게 찍히지가 않았습니다. 그 이유가 궁금합니다.

  • javascript
  • react-native
Rancho Kim 댓글 1 좋아요 0 조회수 240

혹시 이건 어떻게 해결할까요 ?

미해결

배달앱 클론코딩 [with React Native]

그리들 버전을 5.6.4로 업그레이드 하라는것같은데 해당내용으로 검색하니까 프로퍼티스에서 그리들 버전올리라고 나와잇더라구요? 근데 프로퍼티스보니까 5.6.4인데 왜 저 파일은 3점대인지 ... 어떻게 버전을 올릴까요 ?

  • react-native
top gwa 댓글 1 좋아요 0 조회수 221

setState 함수의 동작에 대해 질문 있습니다(2)

미해결

처음 배우는 리액트 네이티브

(아래 코드 참조하여) 질문 : setCount에 함수를 인자로 넣었을 때는 setCount가 동기적으로 작동을 하는 이유가 무엇인지 이해가 잘 가지 않습니다. 동기적으로 작동을 한다기보다는 인자로 넣어진 함수의 count 인자가 setCount 실행 당시 그 직전 count 값을 잘 참조하고 있는 것 같은데 이렇게 실행되는 이유가 궁금합니다. const Counter = () => { const [count, setCount] = useState(0); return ( <> <StyledText>count : {count}</StyledText> <Button title='+' onPress={() => { console.log('set 카운트1 전 count : ' + count); setCount(count => { console.log('count1 : ' + count); return count + 1 }); console.log('set 카운트1 후 count : ' + count); setCount(count => { console.log('count2 : ' + count); return count + 1 }); console.log('set 카운트2 후 count : ' + count); }}/> </> ) }

  • javascript
  • react-native
Rancho Kim 댓글 1 좋아요 0 조회수 282

user User차이

미해결

따라하며 배우는 노드, 리액트 시리즈 - 기본 강의

index.js 코드를 보면서 질문 드립니다. 보다보면 mongoDB에서 제공해주는 함수를 사용 할 때는 User.findOne의 형식으로 사용하고, 직접 User 모델을 통해서 작성한 함수를 사용할 때는 user.comparePassword의 형식으로 사용하던데 이것의 차이가 무엇인지 잘 모르겠습니다. 그동안 User모델에 메서드를 생성해줄 때는 userSchema.methods.함수명 으로 생성해줬는데 findByToken메서드를 만들 때는 userSchema.statics.findByToken으로 가운데에 statics가 들어가고 이 때 methods가 들어가게 된다면 실행 시 함수 접근이 안되서 오류가 떨어지던데 이거에 대한 차이를 설명해주실 수 있으실까요? 부탁드리겠습니다!

  • nodejs
  • react
ycbkr0719 댓글 0 좋아요 0 조회수 302

setState의 동작에 대해 질문 있습니다(1)

미해결

처음 배우는 리액트 네이티브

첫번째 질문: 아래와 같은 상황에서 +버튼을 한번 클릭 했을 때 count에는 1이 저장되게 됩니다. 그렇다는 것은 두 개의 setCount 함수 중 맨 마지막 setCount만 실행된다는 의미로 받아들이면 될까요? 아니면 두 setCount 함수가 실행되지만 받고있는 인자 count는 두 함수 모두 0을 받는다고 생각해야할까요? const Counter = () => { const [count, setCount] = useState(0); return ( <> <StyledText>count : {count}</StyledText> <Button title='+' onPress={() => { console.log('count 1 : ' + count); setCount(count + 1); console.log('count 2 : ' + count); setCount(count + 1); console.log('count 3 : ' + count); }}/> </> ) }

  • javascript
  • react-native
Rancho Kim 댓글 1 좋아요 0 조회수 303

마켓플레이스에 캐릭터가 없습니다.

미해결

C++로 만드는 언리얼엔진 게임포트폴리오 시리즈 Stage1

안녕하세요 실습하는데 마켓플레이스에 military character silver가 없습니다. 혹시 올려 주시거나 rlagusdn0086@naver.com 이메일로 보네 주실 수 있을까요? 아님 링크를 주시면 제가 다운을 받을 수도 있습니다.

  • unreal
  • C++
rlagusdn0086 댓글 1 좋아요 0 조회수 354

vscode 질문드립니다.

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

vscode 사용중입니다. 업로드 된 영상에서 사용하는 atom에서는 print('{:10.5}'.format('pythonstudy'))를 하면 공백없이 나오는데, vscode는 지정한 자리수가 아닌 화면 끝까지 다 공백이 잡히는데, vscode에서는 공백을 줬는지 안줬는지 확인 할 수가 없나요?

  • python
skykccone 댓글 1 좋아요 0 조회수 212

skillsforall.com 접속할 때 안전하지 않은 사이트라며 화면이 하얗게...

해결됨

20년 경력자의 알기 쉬운 컴퓨터네트워크

pc에서 skillsforall.com 접속할 때 주의 요함, 안전하지 않은 사이트라며 화면이 하얗게 되버리고 반응이 없길래... (크롬, 엣지 둘다요..) 로컬 pc에 깔린 V3며, Citrix 까지도 지워보고, 브라우저 쿠키, 캐시 등도 다 지워보고, 브라우저 보안 설정도 가장 낮은 단계로 낮춘답시고 낮췄는데 잘 안되더라구요... 결국은 윈도우 초기화를 해버리니 접속이 잘 됩니다.... ㅠ흑흑 혹시 이럴 때 해결팁이 있을지요?

  • network
  • protocol
하츄핑 댓글 1 좋아요 0 조회수 280

인기 태그

인프런 TOP Writers

주간 인기글