post-thumbnail

fastify 라우팅 파일 분리

1. 파일 생성 2. server.js 파일과 연결 🦦 참고 https://www.fastify.io/docs/latest/Guides/Getting-Started/

2022년 10월 1일
·
0개의 댓글
·
post-thumbnail

fastify Database (MySQL)

1. 설치 2. db 연결 > connectionString: "mysql://유저이름:db비밀번호@127.0.0.1/db이름", * localhost 사용시 app crash에러가 발생하여 127.0.0.1로 변경해주니 해결됨 🌼 참고 https://www.fastify.io/docs/latest/Guides/Database/ https://github.com/fastify/fastify-mysql

2022년 10월 1일
·
0개의 댓글
·
post-thumbnail

fastify 개발 환경 구축하기(yarn)

1. 설치 2. package.json 초기화 3. es6 문법 사용을 위해 babel 설치 node.js는 es6문법을 지원하지않는데, Babel의 설치로 이를 해결할 수 있음 > - Babel 최신 버전의 JavaScript를 이전 버전의 JavaScript로 변환하는데 주로 사용되는 JavaScript 컴파일러 > - 컴파일러 특정 프로그래밍 언어로 쓰여 있는 문서를 다른 프로그래밍 언어로 옮기는 언어 번역 프로그램 4. 최상단에 .babelrc 설정파일 생성 5. server.js 파일 생성 6. 서버 실행 Tip. fastify 관련 플러그인들은 아래에서 찾을 수 있다. https://www.fastify.io/ecosystem/ ✨ 참고 https://www.fastify.io/docs/latest/Guides/Getting-Started/ https://benjamin

2022년 10월 1일
·
0개의 댓글
·