mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
feat: update README with folder structure and execution instructions; add scraping scripts for news articles
This commit is contained in:
parent
c68606ffbe
commit
f8fa412de9
7 changed files with 188 additions and 41 deletions
47
README.md
47
README.md
|
@ -33,4 +33,49 @@ App Design: [Freeform](https://www.icloud.com/freeform/026AxB798cViZ9jJ2DkNsXUCQ
|
|||
- BunJS
|
||||
- Groq
|
||||
- Clerk
|
||||
- Custom Infra
|
||||
- Custom Infra
|
||||
|
||||
## Folder Structure
|
||||
|
||||
```
|
||||
├── .github/
|
||||
│ └── workflows/
|
||||
├── .nuxt/
|
||||
├── .output/
|
||||
├── components/
|
||||
│ ├── app/
|
||||
│ │ └── newsOrgAbout/
|
||||
│ └── ui/
|
||||
├── i18n/
|
||||
├── layouts/
|
||||
├── lib/
|
||||
├── pages/
|
||||
│ └── app/
|
||||
├── public/
|
||||
├── scraping/
|
||||
├── server/
|
||||
│ ├── api/
|
||||
│ │ └── objectstorage/
|
||||
│ ├── components/
|
||||
│ └── routes/
|
||||
├── styles/
|
||||
├── app.vue
|
||||
├── createDatabase.ts
|
||||
├── nuxt.config.ts
|
||||
├── package.json
|
||||
├── tailwind.config.js
|
||||
└── tsconfig.json
|
||||
```
|
||||
|
||||
## 如何執行
|
||||
|
||||
1. First, rename `.env.example` to `.env` and fill in the blanks.
|
||||
2. Run `bun install` to install dependencies.
|
||||
3. Run `bun run createDatabase` to create the database.
|
||||
4. Run `ps1 clone-env.ps1` or `bash clone-env.sh` to clone the `.env` file to the `scraping` folder.
|
||||
5. Run `bun run build` to build the project.
|
||||
6. Run `bun run preview` to start the preview server.
|
||||
7. Open `http://localhost:3000` in your browser.
|
||||
|
||||
### For scaping
|
||||
First, Run `ps1 clone-env.ps1` or `bash clone-env.sh` to clone the `.env` file to the `scraping` folder, then cd into the `scraping` folder. Run `python main.py` to start scraping in Google News.
|
Loading…
Add table
Add a link
Reference in a new issue