
Next.js 컴포넌트화 현재 Front 쪽 코드는 아래와 같습니다. import {FormEventHandler} from "react"; import {redirect} from "next/navigation"; export default async function Home() { async function getData(){ "use server"; const url = new URL("http://localhost:4882") Object.keys(searchParams).map((param:string)=>{ url.searchParams.append(param,searchParams[param] as string) }); let resp = await fetch(url); let result ..
FastAPI ResponseBody Model 만들기 https://fastapi.tiangolo.com/ko/tutorial/response-model/ 응답 모델 - FastAPI FastAPI framework, high performance, easy to learn, fast to code, ready for production fastapi.tiangolo.com 1. ResponseModel from typing import Optional, List from pydantic import Field, BaseModel class ResponseModel(BaseModel): msg:str = Field("", description="응답메세지") isOk:bool = Field(True, ..
fastapi 엑셀 파일 불러와서 뿌려주기 #4 - 검색 이제 단어 검색을 통해서 검색어에 해당하는 데이터만 보여주는 기능을 추가해봅니다. 문자열 검색의 경우에는 Series.str.contains 와 DataFrame.apply를 사용합니다. https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.contains.html pandas.Series.str.contains — pandas 2.2.1 documentation Fill value for missing values. The default depends on dtype of the array. For object-dtype, numpy.nan is used. For..

fastapi 엑셀 파일 불러와서 뿌려주기 #3 - Refactoring """ main.py @제목: 메인 실행 파일 @설명: 메인 실행 파일 작성일자 작성자 ----------------------- 2024.03.14 hiio420 """ import math import pandas as pd from fastapi import FastAPI,Depends from db.initDB import SessionLocal,get_user from sqlalchemy.orm import sessionmaker,declarative_base,relationship,Session # 엑셀 파일 불러오기 xlsx = pd.ExcelFile("F:\\[01]project\\commonStandardTerm\\..

1. 구성 계획 개발환경은 Window에서 진행되고 Backend는 python fastapi Frontend는 nextjs를 사용해볼 계획이다. 배포까지 하면 좋겠지만 추후로 미루기로 하자. IDE는 Pycharm을 쓸예정이다. (VSCode를 써보 되긴하지만, Jetbrain을 결제해서 쓰고 있어서 Pycharm을 쓰기로 결정 Front도 WebStorm을 쓸 예정이다. 2. 개발환경 OS : Window 10 Python : 3.10 으로 anaconda로 가상환경을 구성하지 않고 venv로 구성을 한다. 1. 프로젝트 만들기 Pycharm 실행 후 New Project를 선택하면 Python관련 프로젝트에 FastAPI가 있지만 Pure Python으로 진행한다. 프로젝트 이름은 commonSta..
- Total
- Today
- Yesterday
- Project
- nodejs
- PostgreSQL
- LangChain
- Python
- 챗봇개발
- fastapi
- Docker
- AI챗봇
- Page
- kotlin
- Next.js
- Webpack
- 개발블로그
- llm
- 페이지
- rag
- 관리자
- nextJS
- REACT
- 프론트엔드
- Ktor
- til
- 로컬LLM
- 백엔드개발
- 리액트
- babel
- github
- 백엔드
- 웹개발
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |