
blockchain) nft 만들기
2023. 2. 23. 23:22
Web/blockchain
extention 3개 설치 solidity solidity extends solidity contract flattener truffle 스마트컨트랙트를 만들기 위한 구조 자동생성 설치 sudo npm install -g truffle 구조 만드는 명령어 truffle unbox pet-shop 구조 설명 contract 폴더 솔리디티로 저장한 파일을 곳 스마트컨트랙트, nft를 모아두는 곳 migration 폴더 개발한 스마트컨트랙트를 배포 하는 곳 배포를 위한 파일을 저장하는 곳 trfuffle-config.js 개발 환경 네트워크 설정을 하는 곳 기본 설명 만들고 있는 솔리디티 버젼 설명 명령어 컴파일러 truffle compile 버젼 확인 truffle version ganache 배포할때 가..

ReactJS) 글쓰기-유저가 여러번 클릭 막기/ router.query가 null 인 경우/ +id.toString() 하는 이유/데이터 베이스 날짜, 시간 렌더링
2023. 2. 22. 11:07
Frontend/React & React.Native &Next.js
글쓰기-유저가 여러번 클릭 막기 const onValid = (data) =>{ // 유저가 여러번 클릭하는 거 막기 위한 것 if(loading) return ; test(data) } router.query가 null 인 경우 상세페이지에서는 router.query가 null일 수 있다 null이면 error를 받기 떄문에 null 페이지로 갈 수 있다 const { data, error } = useSWR(router.query.id ? `/api/test/${router.query.id}` : null) +id.toString() 하는 이유 const post = await client.test.findUnique({ where: { // id가 배열로 들어올 수 있고, 저장할떄는 숫자로 해야해서..

Flutter ) install
2023. 2. 17. 12:50
Frontend/Dart & Flutter
install 플러터 설치 공식 설치 Install Install Flutter and get started. Downloads available for Windows, macOS, Linux, and Chrome OS operating systems. docs.flutter.dev 더 쉬운 설치 brew install --cask flutter 시뮬레이터 설치 IOS와 안드로이드 스튜디오 설치 확인 터미널에 flutter doctor 옳은 화면 문제 해결 안드로이드 설치한 후 명령어 flutter doctor --android-licenses IOS 두개 명령어 치기 홈페이지로 이동 홈페이지대로 아래 명령어 치기 sudo gem install cocoapods 완료