본문 바로가기

심심풀이 개발24

ㅇ NextJS server.js localhost https로 사용하기(개발 용) const { createServer } = require("https"); const { parse } = require("url"); const next = require("next"); const fs = require("fs"); const hostname = "localhost"; const port = 3000; const dev = process.env.NODE_ENV !== "production"; const app = next({ dev, hostname, port }); const handle = app.getRequestHandler(); const httpsOptions = { key: fs.readFileSync("localhost+1-key.pem"), cert: fs.readF.. 2023. 6. 1.
heroku에 노드 채팅 올리기 ㅇ 원하는 소스 가져오기 git clone https://github.com/rubychi/udemy-chatapp.git cd ./udemy-chatapp 환경 파일 소스 수정 heroku login git init #heroku 에 git 연결 heroku git:remote -a socketgaming-chat git add . git commit -am "make it better" git push heroku master https://mlab.com/ MongoDB Atlas Database | Multi-Cloud Database Service The multi-cloud database service at the heart of our developer data platform that a.. 2022. 8. 10.
eslint 설정 파일 eslint --init 보안 에러시 PS F:\Tobi\nodejs\eslint> ExecutionPolicy Restricted PS F:\Tobi\nodejs\eslint> Set-ExecutionPolicy -Scope CurrentUser cmdlet Set-ExecutionPolicy(명령 파이프라인 위치 1) 다음 매개 변수에 대한 값을 제공하십시오. ExecutionPolicy: Unrestricted PS F:\Tobi\nodejs\eslint> ExecutionPolicy Unrestricted npm init -y npm install eslint -D eslint --init touch test.js eslint ./test.js =============================.. 2020. 7. 18.
자바스크립트 트렌드 확인 https://2019.stateofjs.com/ko/ The State of JavaScript 2019 2019.stateofjs.com 대세 react-ts-ject-redux-graphql-express 구성 https://heropy.blog/2019/09/29/svelte/ https://d2.naver.com/helloworld/4007447 2020. 6. 27.