목록전체 글 (549)
똑같은 삽질은 2번 하지 말자

개요 고랭 학습하면서 느낀점이나 기록하면 좋을법한 내용들을 정리 1. 더미데이터 만들때 좋은 패키지 go get -u github.com/bxcodec/faker/v3 usage package main import ( "ambassador/src/database" "ambassador/src/models" "github.com/bxcodec/faker/v3" ) func main() { database.Connect() for i := 0; i < 30; i++ { ambassador := models.User{ FirstName: faker.FirstName(), LastName: faker.LastName(), Email: faker.Email(), IsAmbassador: true, } ambass..
보호되어 있는 글입니다.

개요 vue + firebase + cloud functions(API Server) 로 이루어진 어플리케이션의 staging/production 환경 만들기 1. Firebase는 복수의 호스팅이 가능하다. 2. vue-cli를 이용해 staging용 production용 빌드 스크립트 정의 "scripts": { "build-stg": "vue-cli-service build --mode staging", "build-prd": "vue-cli-service build --mode production", // firebase deploy --only hosting:타겟이름(.firebasesrc에 정의한) "stg-deploy": "npm run build-stg && firebase deploy -..
보호되어 있는 글입니다.
LGTM 「Looks Good To Me」 = 좋다 WIP 「Work In Progress」 = 아직 작업중 FYI 「For Your Information」 = 참고하세요 must 「must」 = 필요 want 「want」 = 이렇게 해줘 imo 「in my opinion」 = 그냥 내생각은 imho 「in my humble opinion」 = 어...그냥 좀 자신이없지만 내 생각은 imnsho 「in my no so humble opinion」 = 까놓고 말하면 imao 「in my arrogant opinion」 = 까놓고 말하면2 nits 「nitpick」 = 좀 사소한 부분이지만, GOTCHA 「I've got you」 = 해냈다 NP 「No Problem」
보호되어 있는 글입니다.

개요고랭 학습하면서 느낀점이나 기록하면 좋을법한 내용들을 정리프로젝트 시작하기 이하의 사이트에서 OS에 따라 설치를 진행해준다.https://go.dev/dl/ Downloads - The Go Programming LanguageDownloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about Go releasesgo.dev설치가 끝나면..
보호되어 있는 글입니다.

개요 vue router의 hash mode와 history mode에 대해 공부하는데 애초에 어떻게 페이지의 로드없이 페이지의 이동이 이루어지는가에 대해 궁금해져서 작성하는 글 hash mode의 페이지 이동 이하의 이미지를 보면 uri에 /#/ 이라는 특별한 친구가 들어가는데 #의 이후의 변경에 대해서는 웹서버에서는 인식못한다. 왜냐하면 request URL로써는 #을 포함해 # 이후의 부분들은 생략되어 요청이 날라가기 때문이다. 요청이 날라가는건 최초에 한번 or 직접접속 or 새로고침 이고 이후에 #의 뒷부분들의 바뀌어도 HTTP Request가 발생안한다. HTTP Request가 발생하지 않으므로 페이지의 로드없이 URL이 바뀐다. 그럼 페이지 이동은? https://developer.mozi..

개요 Nuxt와 Firebase로 구성되어 있는 앱에 analytics가 활성화 되어 있는 상태이다. 하지만 수집되고 있는 페이지뷰의 이벤트를 보면 페이지가 하나밖에 없는것?처럼 보이는데 이건 SPA(Single Page Application)라 페이지의 이동이 javascript에 의해 이루어지므로 페이지의 로드 없이 이루어진다. 그래서 페이지가 하나밖에 없는것처럼 보인다. 그럼 SPA에서는 어떻게해야 페이지뷰 이벤트를 정상적으로 측정할 수 있을까? 1. 기존에 활성화 되어있던 analytics을 없앤다.(있다면! 없으면 무시) 이하의 코드같이 analytics의 함수를 실행시키는 것만으로 analytics수집 관련 코드가 페이지에 삽입된다. 이걸 넣은 그대로 gtm으로 page_view이벤트를 커스텀..