Skip to content

An academic project on a medical news system, developed using Spring Boot and ReactJS with TSX, implementing RAG to build a disease diagnosis chatbot based on data crawled using Selenium.

License

Notifications You must be signed in to change notification settings

Theanh130124/Medical_News

Repository files navigation

SpringBoot_App

industry project

SETUP CORE AI

  • Ghi tên file vào trained_file.log khi đã train các file _ lấy các file có tên đánh dấu là đã train

Anacoda prompt


conda create -n medichatbot python=3.10 -y

conda activate medichatbot

pip install -r requirements.txt

python template.py

add -e .  in requirements.txt  -> nó tìm tập setup.py và chạy

python store_index.py -> create db pine lần đầu

python app.py 



#Chạy cho lần đầu tiên -> python store_index.py

#Chạy mỗi lần để thực hiện gọi đc api -> python app.py 

BE - SPRINGBOOT - SETUP


- run container spring-mysql - từ image mysql-lastest 

- create Application -> for .env 



Enable SpringBoot Dev Tool

alt text

Ctrl+Shift+A -> registry -> compiler.automake.allow.when.app.running

Setup -Redis

CMD

RUN DOCKER DESKTOP

docker --version 

docker run --name redis-dev -p 6379:6379 -d redis


add pom.xml

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
    <version>3.5.3</version>
</dependency>


<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-cache</artifactId>
    <version>3.5.3</version>
</dependency>

Config -> application.properties 

1752468675941

Front end -REACTJS(TSX) - SETUP

yarn create react-app medical-news --template typescript

yarn start

About

An academic project on a medical news system, developed using Spring Boot and ReactJS with TSX, implementing RAG to build a disease diagnosis chatbot based on data crawled using Selenium.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published