Skip to content

Commit

Permalink
Merge pull request #46 from UnBArqDsw2024-1/feat/scrapper
Browse files Browse the repository at this point in the history
Feat/scrapper
  • Loading branch information
DelzironBraz authored Aug 7, 2024
2 parents 4303b2f + fb459eb commit 4a4e602
Show file tree
Hide file tree
Showing 9 changed files with 473 additions and 0 deletions.
34 changes: 34 additions & 0 deletions scrapper/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Include any files or directories that you don't want to be copied to your
# container here (e.g., local build artifacts, temporary files, etc.).
#
# For more help, visit the .dockerignore file reference guide at
# https://docs.docker.com/go/build-context-dockerignore/

**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.next
**/.cache
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose.y*ml
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/build
**/dist
LICENSE
README.md
1 change: 1 addition & 0 deletions scrapper/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE_URL="https://mundopodcast.com.br/artigos/"
3 changes: 3 additions & 0 deletions scrapper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.env
src/articles.json
20 changes: 20 additions & 0 deletions scrapper/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG NODE_VERSION=18

FROM node:${NODE_VERSION}-alpine

ENV NODE_ENV development

WORKDIR /src/app

COPY package*.json ./

RUN npm install

COPY . .

USER node

EXPOSE 3000

CMD ["node", "src/index.js"]

15 changes: 15 additions & 0 deletions scrapper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# WebScrapper Mundo Podcast

Esse projeto tem como intuito realizar um webscrapper para que se torne uma ferramenta facilitadora no momento que o backend estiver definido, podendo povoar o banco com dados reais utilizados no Mundo Podcast.

## Development

# How to execute ?
```shell
docker compose up --buid
```

After you build for the first time, you just need to make:
```shell
docker compose up
```
9 changes: 9 additions & 0 deletions scrapper/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
server:
build: .
volumes:
- .:/src/app
environment:
NODE_ENV: development
ports:
- "3000:3000"
294 changes: 294 additions & 0 deletions scrapper/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a4e602

Please sign in to comment.