728x90
반응형
[프로젝트 구조]
[예상 프로젝트 화면]
[실행 방법]
- front 서버
cd src/main/frontend
(설치) npm install
(빌드) npm run build
(실행) npm start
[ 참고 ]
- Spring Boot-React-PostgreSQL 환경 설정 (https://na-hollo.tistory.com/31)
- postgreSQL 연결 (https://velog.io/@jwpark06/SpringBoot에-JDBC로-Postgresql-연동하기)
- Superbase 연결 (https://newstroyblog.tistory.com/627)
- User 테이블 CRUD 생성 (https://www.youtube.com/watch?v=qno5Lh5SYF4)
- OpenAPI 키 생성 (https://hunseop2772.tistory.com/343)
- jdk 다운로드 (https://www.oracle.com/java/technologies/javase/jdk18-archive-downloads.html)
- postgreSQL 다운로드 (https://www.postgresql.org/download/windows/)
- 비밀번호 : 0000
- port 번호 : 5432
- Locale : ko_KR.UTF-8
- 다운로드 후 SQL shell 실행 → password 제외 모두 엔터 → select version();
- pgAdmin4 실행 → Server 클릭 후 비밀번호 입력 → Login/Group 클릭 후 General(이름), Definition(비밀번호), 권한(모두) 입력
- SQL shell 에서 \l 입력 → 데이터베이스 확인
[ PostgreSQL 명령어 ]
- \\l : 데이터베이스 설정 확인
- \\c DB이름 : 데이터베이서 접속
- \\dt : 데이터베이스 정보 relation 확인
- \\du : 계정들 리스트와 각 계정의 권한과 역할 확인
- select current_schema(); : 현재 스키마 확인
- SET search_path TO 스키마명; : 스키마 설정
- https://dbrang.tistory.com/749
[트러블 슈팅 가이드]
- JAVA 버전이 맞지 않음 (JAVA18 이상 필요)
- postgreSQL Did not find relations 오류 해결
- CORS 에러 해결
- Process 'command 'npm'' finished with non-zero exit value 1
- 해결 : 설정 > 빌드 > Gradle > Intellij 및 해당 JDK로 변경
- createProxyMiddleware is not a function
- 해결 : setupProxy 파일 중 cosnt 선언시 {} (괄호) 제거
- https://www.inflearn.com/community/questions/148070/proxy-is-not-a-function-에러가-그래도-해결이-안되시는-분들?srsltid=AfmBOooi_OHemkgx9dO_9_SFkV3Xf301LAhvlAonk01dndywfyu4zhPb
- 'React' must be in scope when using JSX
- 해결 : App.js 파일에서 import React from “react” 구문 추가
- https://ramincoding.tistory.com/entry/React-must-be-in-scope-when-using-JSX-ESLint-에러
- Can't reexport the namespace object from non EcmaScript module (only default export is available)
- packge.json 파일의 react-scripts를 "react-scripts": "5.0.1" 수정
- https://velog.io/@hana0627/REACTCant-import-the-named-export-Component-from-non-EcmaScript-module-only-default-export-is-available
728x90
반응형
'프로젝트' 카테고리의 다른 글
조코딩 - WEB (0) | 2025.04.11 |
---|---|
Climbing Project (0) | 2025.04.09 |