Dawn-Search-Engine

所属分类:搜索引擎
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-01-05 08:13:24
上 传 者sh-1993
说明:  创建了Dawn News Search Engine,前端集成了React.js,后端集成了python。用于从曙光新闻档案中搜索和访问相关新闻故事的前端。后端使用Express.js服务器来处理用户请求,使用基于Python的搜索引擎来进行内容预处理、索引和查询管理。
(Created Dawn News Search Engine, integrating React.js for the frontend and python for the backend. Frontend for searching and accessing relevant news stories from the Dawn News archive. The backend uses an Express.js server for user requests and a Python-based search engine for content preprocessing, indexing, and query managment.)

文件列表:
.idea/
__pycache__/
my-new-app/
node_modules/
search-engine-frontend/
InstructionToRun.txt
Only_Preprocess.py
app.py
document_links_live.csv
inverted_index_live.csv
main.py
package-lock.json
package.json
pre_processing.py

## How to Run Code in Your System? ### Backend Setup 1. Install Python version 3.9. 2. Install the following Python packages using pip: ```bash pip install requests pip install beautifulsoup4 pip install nltk pip install pandas pip install Flask pip install Flask-CORS ``` 3. Download NLTK resources: ```bash python -m nltk.downloader stopwords python -m nltk.downloader punkt ``` ### Frontend Setup 1. Install Node.js version v20.10.0 and npm from the official website: [Node.js](https://nodejs.org/). 2. Set up the frontend using the following commands: ```bash npx create-react-app search-engine-frontend cd search-engine-frontend npm install npm install axios npm start ``` ### Verify Installation To verify the installations, execute the following commands in the terminal: ```bash node -v v20.10.0 npm -v 10.2.5 ## Run Application ### Frontend 1. Open a terminal and navigate to the `search-engine-frontend` directory: ```bash cd search-engine-frontend ``` 2. Start the frontend application: ```bash npm start ``` ### Backend 3. Open another terminal. 4. Navigate to the root project directory. 5. Run the Python backend script: 1st run main.py file for preprocessing then ```bash python app.py ``` Now, your application is running with the frontend and backend components in separate terminals.

近期下载者

相关文件


收藏者