본문 바로가기

개발60

[Flutter] Error running pod install 플러터에서 iOS 빌드하다 이러한 에러를 만난다면 당황하지 말 것 Error running pod install Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`. 프로젝트 내 ios 폴더에서 Podfile 을 열고, 최상단에 주석처리 되어있는 부분을 해제하고 # platform :ios, '9.0' -> platform :ios, '9.0.. 2022. 1. 18.
[Flutter] firebase 연동 : FlutterFire CLI 복잡한 과정없이 firebase 연동하기 FlutterFire 공식 Document : https://firebase.flutter.dev/docs/cli/ CLI | FlutterFire The FlutterFire CLI is a useful tool which provides commands to help ease the installation process firebase.flutter.dev 1. 프로젝트 firebase 계정 연결 $ firebase login:list // 연결되어있는 계정 확인 $ firebase login // 없으면 firebase 계정 로그인 2. firebase_core 추가 $ flutter pub add firebase_core 3. FlutterFire CLI .. 2022. 1. 17.
[Flutter] Unable to find bundled Java version Firebase 를 열심히 찾아보던 중 샘플 코드를 보려고하니 Dart 버전이 안맞아 실행이 되지 않았다. 간만에 flutter doctor -v 를 실행 → 에러 발생 ^.^ 자바를 찾을 수 없습니다. 갑자기 Java SDK 버전을 업그레이드한 일이 생각나며, android studio에서 발생했던 gradle 문제도 생각났다. 그냥 오늘 해결한 모든 문제가 생각났다. ㅎㅎ 해결방법 아래 순서대로 실행 ㄱ.ㄱ $ cd /Applications/Android\ Studio.app/Contents/jre $ ln -s ../jre jdk $ ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk 결과 빨간색이 없어서 편안 ^.^ 참고 https://.. 2022. 1. 11.
[Flutter] firebase 연동 firebase 연동 방법을 검색하다 삽질을 팡팡할 것 같아 쓰는 글 : 미래의 나를 위해 iOS 1. firebase console -> project 생성 -> iOS 앱 등록 -> bundle ID 작성 -> 등록 1-1. bundle ID : Xcode -> 프로젝트 열기 -> Runner - General - Bundle Identifier (원하는 이름 변경 가능) 2. GoogleService-Info.plist 추가 2-1. Runner - Runner(folder) -> 오른쪽 마우스 -> Add Files to "Runner" -> 파일 선택 추가 (Copy items if needed 체크) 3. GoogleService-Info.plist -> REVERSED_CLIENT_ID 복사.. 2022. 1. 11.
[Next.js] scroll-position 1. 스크롤 했을 때 CloseButton이 보이게 2. CloseButton을 눌렀을 때 thumbnail image가 안보이게 3. https://www.npmjs.com/package/@n8tb1t/use-scroll-position import { useScrollPosition } from '@n8tb1t/use-scroll-position' // visible 여부, img position state 관리 const [isVisible, setIsVisible] = useState(false) const [imgPosition, setImgPosition] = useState('') useScrollPosition(({ currPos }) => { const scrollY = Math.abs(.. 2021. 12. 13.
[node] mac에서 설치된 node.js 삭제하기 터미널 실행 $ lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done $ sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* $ cd /usr/local/lib $ sudo rm -rf node* $ cd /usr/local/include $ sudo rm -rf node* $ brew uninstall node $ sudo rm -rf /usr/local/bin/npm $ sudo rm -rf /usr/local/bin/node $ ls -las $ sudo rm .. 2021. 10. 21.
[FastAPI] FastAPI (2) - PostgreSQL CRUD API 만들기 들어가며 지난 시간에 FastAPI 프로젝트를 구축하고 실행까지 진행했다. 이번에는 PostgreSQL DB를 연동하고 간단한 CRUD API를 만들 것이다. (FastAPI Document가 넘넘 잘 되어있어서 많이 참고했다!) API 동작 결과는 Postman 으로 확인한다. 패키지 설치 fastapi 에서는 orm으로 sqlalchemy 를 사용한다고 한다. (관련 패키지 설치) $ poetry add psycopg2 $ poetry add psycopg2-binary $ poetry add sqlalchemy 프로젝트 구조 core > db 폴더 추가 health ├── README.md ├── app │ ├── __init__.py │ ├── core │ │ ├── __init__.py │ │ .. 2021. 10. 10.
[FastAPI] FastAPI (1) - 설치 입사 과제할 때 맛보기로 사용해본 후 다시 공부하게 되었다. 들어가며 다른 FastAPI 설치 방법과는 다르게 manage-fastapi 사용했다. (출처는 아래) fastapi best structure 라는 키워드로 검색했을 때 제안해준 라이브러리이다. https://github.com/ycd/manage-fastapi GitHub - ycd/manage-fastapi: CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy. :rocket: CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy. - GitHub - ycd/man.. 2021. 9. 9.
Poetry 설치 및 사용방법 회사 업무에서 처음 접한 툴이다. 개발 환경을 깨꿈히 만들 수 있다. 넘나 간편하다. Poetry 공식 문서에서는 아래와 같이 정의한다. Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. 간단히 살펴보자. 설치 $ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python .zshrc 파일을 열어보면 poetry 경로가 자동으.. 2021. 8. 28.
[AWS] AWS 원격 서버 접속 (in pycharm) 지난 번에 AWS에 Lightsail 서버 인스턴스와 데이터베이스를 생성했다. 이번에는 생성한 서버와 로컬을 연결해보려 한다. 여기서 내가 기대한 내용은 AWS 원격 서버와 로컬 프로젝트 연동 및 양쪽 어느곳에서나 파일 읽기/쓰기가 가능한 내용이다. 결론적으로는 다른 결과를 얻게 된다. 1. 서버 설정 Ubuntu 서버에서 내가 원하는 위치에 가상환경 생성 $ python3 -m venv {env_name} 에러가 난다면 아래 코드 실행 $ sudo apt-get install python3-venv 2. Pycharm 설정 로컬 환경에 프로젝트 생성 Preference - Python Interpreter - SSH Interpreter 설정 Host , Username , pem key 입력 후 연결.. 2021. 8. 21.