본문 바로가기
728x90
반응형

개발/기능 구현, 프로젝트5

폐쇄망 환경에서 웹만들기(spring boot, gradle, nuxt, nexus3) https://github.com/jonghyeok34/pledge-project-summary 2021. 9. 6.
프로메테우스, 그라파나 windows에서 로컬 개발하기 - Docker 1. 자바 서버 build.gradle .. dependencies { implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'io.micrometer:micrometer-registry-prometheus' ... } application.yaml server: port: 8000 management: endpoints: web: exposure: include: health, info, prometheus 2. 설정 yml 파일 configs/alertmanager.yml global: resolve_timeout: 1m slack_api_url: 'https://hooks.slack.com/servi.. 2021. 4. 19.
websocket 설정( js, spring boot) front end (js) 1. npm install npm i sockjs-client npm i stompjs 2. connect하는 js 파일 import SockJS from "sockjs-client"; import Stomp from "stompjs"; var stompClient = null; export function connect() { const headers = { // connect, subscribe에 쓰이는 headers }; var socket = new SockJS(`/ws`); stompClient = Stomp.over(socket); stompClient.connect( headers, frame => { stompClient.subscribe( "", () => { .. 2021. 3. 31.
Firebase authentication 적용하기 (python) 설정 1. firebase-admin 라이브러리 설치 pip install firebase-admin 2. 공개키 생성하기 --> json파일이 생성됨. 3. python 구조 from firebase_admin import credentials, auth # cred = credentials.Certificate("/경로/생성된 비공개키 파일명.json") cred = credentials.Certificate("/service-account-key.json") default_app = firebase_admin.initialize_app(cred) # USER 여부 try: user = auth.get_user('localId') print('성공했을 경우 user의 정보를 불러옴: {0}'.form.. 2020. 3. 19.
728x90