Skip to content

Commit

Permalink
Merge pull request #63 from donghquinn/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
donghquinn authored Mar 5, 2024
2 parents 32cc766 + 697eb46 commit b720105
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ example.env

migrations

newsData
newsData

images

README.md
40 changes: 28 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
# Data Scraping
# Tech News Backend

- Scrape Page: https://scrape.donghyuns.com

<img src="images/landing.png"/>
<em>Landing Page</em>

## Hacker News

- URL: https://news.ycombinator.com
- Original URL: https://news.ycombinator.com
- Hacker News 1~30위

<img src="hackerNews_sample.png"/>
<img src="images/hacker.png"/>
<em>Hacker News</em>


## ML News

- URL: https://allainews.com/?ref=mlnews
- Original URL: https://allainews.com/?ref=mlnews
- Machine Learning 관련 뉴스

<img src="mlNews_sample.png"/>
<img src="images/ml.png" />
<em>Machine Learning News</em>

## Geek News

- URL: https://news.hada.io
- Original URL: https://news.hada.io
- Geek News

<img src="geekNews_sample.png"/>
<img src="images/geek.png" />
<em>Geek News</em>

## Data ERD

- Login Function is Work-In-Progress with frontend.

<img src="images/erd_news.png"/>
<em>E-R Diagram</em>

---

Expand All @@ -45,21 +61,21 @@
로컬에 npm/yarn과 prisma를 설치한다
로컬이 아니더라도 작업할 환경에서

```
```shell
npm run migrate
```

혹은

```
```shell
yarn run migrate
```

를 통해 데이터 베이스 마이그레이션

* 이미 실행 중에 데이터베이스 스키마가 변경되었을 떄

```
```shell
yarn run db:update
```

Expand All @@ -82,12 +98,12 @@

후에 db 컨테이너 구동

```
```shell
sudo docker-compose up -d db
```

그 후에 백엔드 컨테이너 구동

```
```shell
sudo docker-compose up -d backend
```
Binary file added images/erd_news.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/geek.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hacker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/landing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b720105

Please sign in to comment.