본문 바로가기

반응형

Web

(53)
크롬 CORS 에러 해결방법 Access to XMLHttpRequest at from '요청을 받은 주소 ' origin '요청한 주소' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Access to XMLHttpRequest at from 'Request URL' origin 'Request Header Origin Url' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. https://coding-groot.tistory.com..
[TS] typescript-excess-property-checks https://www.typescriptlang.org/docs/handbook/release-notes/typescript-1-6.html#stricter-object-literal-assignment-checks Documentation - TypeScript 1.6 TypeScript 1.6 Release Notes www.typescriptlang.org 사소하다 아래 코드에서 a=b는 되는데 왜 c = {a:"a", b: "B"} 가 안될까? type A = { a : string } type B = { a : string, b : string } let a:A = {a: 'a'}; let b:B = {a: "A", b: "B"}; a = b; // OK let c:A = {a: "A", b: ..
[Web Server] NGINX, Flask, uwsgi 연동 작성자 : 김익한 이거 쓰고 작성자님께서 gunicorn으로 갈아 타신거는 안비밀 패키지, 라이브러리 설치 $ sudo apt-get update #패키지 정보 업데이트 $ sudo apt-get dist-upgrade #패키지 의존성 검사 및 업그레이드 $ sudo apt-get install nginx $ sudo apt install python3-pip $ pip3 install flask $ pip3 install uwsgi​ Flask 파일 생성 project.py # path = /home/ubuntu/works/myproject/project.py from flask import Flask app = Flask(__name__) @app.route("/") def main(): return..
[Web] 웹 개발자 초보가 보면 유용한 글 유용한 사이트 인기 웹 프레임워크 https://hotframeworks.com/ Web framework rankings - HotFrameworks Find your new favorite web frameworkMeasuring web framework popularity so you can find interesting frameworks to check outRankings FrameworkGithub ScoreStack Overflow ScoreOverall ScoreReact999798ASP.NET MVC9595Angular919693Ruby on Rails879993AngularJS9097 hotframeworks.com 개발 전 읽어보면 좋은것들 쿠키와 세션 (ft. HTTP의 비연결성과..
[classnames] Could not find a declaration file for module React Typescript 프로젝트 진행 중 “Could not find a declaration file for module” 오류가 떴다. 방법1 npm install @types/classnames 를 하라고 떴는데 하고 나서도 계속 나왔다.. (눈물) 눈물을 흘리면서 classnames type install not working 하면서 삽질을 하고 있었더니 능력자분께서 해결책을 찾으셨다. 방법2 node_modules 삭제 후 다시 npm install 방법3 (react 기준) 자동으로 생기는 경우도 있고 안되는경우도 있다(눙물) react-app.env.d.ts 에 declare module "classnames"; 를 추가한다. declare module "classnames"; 참고 ..
[JAVASCRIPT] 한번 쯤 궁금한것 https://stackoverflow.com/questions/2917175/return-multiple-values-in-javascript Return multiple values in JavaScript? I am trying to return two values in JavaScript. Is this possible? var newCodes = function() { var dCodes = fg.codecsCodes.rs; var dCodes2 = fg.codecsCodes2.rs; return dCodes, dCode... stackoverflow.com
[WEB] 웹 스트레스 테스트 (APM) 시나리오 작성 APM (Application Performance Management or Application Performance Monitoring) 선정 https://stackify.com/top-10-open-source-apm-tools/ Top 10 Open Source APM Tools Here is the list of the top open-source APM tools available as an alternative if you’re looking for low-cost application performance monitoring. stackify.com https://couplewith.tistory.com/entry/2021-년-최고의-성능-테스트-도구-부하-테스트-도구 20..
[Javascript] 입문/초보 참고 사이트 모던 javascript 튜토리얼 https://ko.javascript.info/ 모던 JavaScript 튜토리얼 ko.javascript.info 구조분해할당 https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment 구조 분해 할당 - JavaScript | MDN 구조 분해 할당 구문은 배열이나 객체의 속성을 해체하여 그 값을 개별 변수에 담을 수 있게 하는 JavaScript 표현식입니다. developer.mozilla.org ES6 축약코딩 기법 19가지 https://chanspark.github.io/2017/11/28/ES6-%EA%BF%80%ED%8C%81.html [..

반응형