Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 15 additions & 55 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,62 +1,22 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
# Go build artifacts
bin/
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
.eggs/

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Go workspace and coverage
vendor/
coverage.out

# Pycharm project files
# IDE/editor
.idea/

# PyTest cache
.pytest_cache/

# Coverage
.coverage
coverage.xml

# Tox
.tox/
.cache/
.python-version

# VirtualEnv
.venv/

# Developers
.vscode/
*.sw*
.DS_Store

# example database
drf_example

db.sqlite3
static/
media/*

celerybeat-schedule

credentials/*.json

.env
# Environment
.env
77 changes: 50 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,50 @@
# Brscans Backend

O **Brscans Backend** é uma aplicação baseada em **Django** que realiza o scraping de sites de mangás, clonando o conteúdo e integrando com o **Brscans Translator** para traduzir os balões de fala. Toda a estrutura é otimizada para escalabilidade, utilizando **AWS S3** para armazenamento, **AWS Lambda** para execução serverless e **Zappa** para implantação.

## Funcionalidades

- **Scraper de sites de mangá**: Coleta imagens e dados dos capítulos.
- **Clonagem de sites**: Replica a estrutura do site original.
- **Integração com o Brscans Translator**: Envia imagens para tradução automatizada.
- **Armazenamento em S3**: Gerencia os arquivos de forma escalável.
- **Execução Serverless**: Utiliza AWS Lambda e Zappa para rodar de forma eficiente.

## Tecnologias utilizadas

- **Django** e **Django REST Framework**
- **BeautifulSoup** e **Scrapy** para scraping
- **AWS S3** para armazenamento de imagens
- **AWS Lambda** para execução assíncrona
- **Zappa** para deploy serverless
<!--
// "events": [
// {
// "function": "brscans.manhwa.tasks.sync_manhwas.sync_manhwas",
// "expression": "cron(0/30 * * * ? *)"
// }
// ]
-->
# Brscans Backend (Go)

Reescrita completa do backend em **Go**, substituindo integralmente a implementação anterior em Django.

## Stack

- Go 1.24+
- net/http (roteamento HTTP)
- Armazenamento em memória para entidades de domínio

## Executar localmente

```bash
go run ./cmd/server
```

Servidor padrão em `http://localhost:8080`.

## Endpoints principais

- `GET /healthz`
- CRUD:
- `/manhwas`
- `/chapters`
- `/images`
- `/comments`
- `/notifications`
- Relacionamento:
- `GET /manhwas/{id}/chapters`
- Wrapper:
- `GET /wrapper?url=...`
- Auth/Favoritos:
- `POST /auth/register`
- `POST /auth/login`
- `GET /auth/me`
- `POST /auth/discord`
- `POST /manhwas/{id}/favorite`
- `DELETE /manhwas/{id}/favorite`
- `GET /manhwas/{id}/is-favorite`
- `GET /favorites`
- Schema/docs placeholders:
- `GET /api/schema/`
- `GET /api/swagger/`
- `GET /api/redoc/`

## Testes

```bash
go test ./...
```
Empty file removed __init__.py
Empty file.
Empty file removed brscans/__init__.py
Empty file.
Binary file removed brscans/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/storage_backends.cpython-38.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
Binary file removed brscans/__pycache__/wsgi.cpython-38.pyc
Binary file not shown.
16 changes: 0 additions & 16 deletions brscans/asgi.py

This file was deleted.

Empty file removed brscans/authentication/__init__.py
Empty file.
7 changes: 0 additions & 7 deletions brscans/authentication/apps.py

This file was deleted.

85 changes: 0 additions & 85 deletions brscans/authentication/migrations/0001_initial.py

This file was deleted.

Empty file.
39 changes: 0 additions & 39 deletions brscans/authentication/models.py

This file was deleted.

55 changes: 0 additions & 55 deletions brscans/authentication/serializers.py

This file was deleted.

31 changes: 0 additions & 31 deletions brscans/authentication/urls.py

This file was deleted.

Loading