readdig/readdig
Sobre
Um leitor de RSS e podcasts. https://readdig.com
Sistemas e infraestruturaO que você pode fazer
- RSS feed reader
- Feed organization with folders and tags
- Article starring and reading history
- OPML import/export
Crescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- +1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalReaddig
Readdig is an RSS and Podcast reader application.
Table of Contents
Features
- RSS feed reader
- Podcast player
- Feed organization with folders and tags
- Article starring and reading history
- OPML import/export
- Payment integration with Paddle
Architecture
The application consists of:
- API: Node.js backend service (Express.js)
- APP: React frontend (Create React App)
- Database: PostgreSQL
- Cache: Redis
- Queue: Bull (Redis-based)
Prerequisites
- Node.js 18.20.8 or later
- PostgreSQL 12 or later
- Redis 6 or later
- Docker and Docker Compose (for Docker deployment)
Installation
Development Setup
1. Clone Repository
git clone https://github.com/readdig/readdig.git
cd readdig
2. Setup API
cd api
# Install dependencies
yarn install
# Configure environment
cp .env.example .env
# Edit .env with your settings
# Run database migrations
yarn db:migrate
# Start development server
yarn dev
The API will be available at http://localhost:8000
3. Setup App
cd ../app
# Install dependencies
yarn install
# Configure environment
cp .env.example .env
# Edit .env with your settings
# Start development server
yarn start
The app will be available at http://localhost:3000
Docker Deployment
This is the recommended way to deploy Readdig for production use. It uses pre-built images from GitHub Container Registry.
1. Get Configuration Files
You can clone the repository to get the necessary configuration files (or just download the specific files you need):
git clone https://github.com/readdig/readdig.git
cd readdig
2. Configure Environment
Docker Compose:
cp docker-compose.example.yml docker-compose.ymlEdit Configuration: Open
docker-compose.ymland modify theenvironmentsections for bothapiandappservices.- Database: Set
POSTGRES_PASSWORDand updateDATABASE_URLto match. - Security: Set a secure
JWT_SECRET. - Domain: Update
PRODUCT_URL,REACT_APP_PRODUCT_URLandREACT_APP_API_URL.
- Database: Set
Nginx (Optional but Recommended): If you want to run Nginx as a reverse proxy in front of the containers:
cp nginx.example.conf nginx.conf # Edit to match your server_name, then include it in your Nginx setup
3. Start Services
# Pull the latest images
docker compose pull
# Start containers in background
docker compose up -d
# Check status
docker compose ps
The services will be available at:
- Frontend:
http://localhost:3000(orhttp://localhostif using Nginx) - API:
http://localhost:8000(orhttp://localhost/apiif using Nginx)
4. Customizing Configuration (Advanced)
- API Scaling: The API service defaults to 1 instance. If you need to scale or change PM2 settings, you can mount a custom config file to
/app/ecosystem.prod.config.js. Seedocker-compose.ymlfor an example. - Database Migrations: Migrations run automatically on container startup.
5. Verify
curl http://localhost:8000/health
# Should return {"status":"ok"}
Configuration
Docker Environment Variables
Configure these values in your docker-compose.yml file under the environment section for each service.
API Environment Variables
| Variable | Description | Required |
|---|---|---|
NODE_ENV |
Environment (development/production) | Yes |
API_PORT |
API server port | Yes |
API_HOST |
API server host | No |
DATABASE_URL |
PostgreSQL connection string | Yes |
CACHE_URL |
Redis connection string | Yes |
JWT_SECRET |
JWT signing secret | Yes |
PRODUCT_URL |
Product URL | Yes |
PRODUCT_NAME |
Product name | Yes |
USER_AGENT |
User agent for feed fetching | No |
EMAIL_BACKEND |
Email backend (only sendgrid supported, leave empty to disable) |
No |
EMAIL_SENDGRID_SECRET |
SendGrid API key | No |
EMAIL_SENDER_SUPPORT_NAME |
Support email sender name | No |
EMAIL_SENDER_SUPPORT_EMAIL |
Support email sender address | No |
CLOUDFLARE_PROXY_URL |
Cloudflare worker proxy URL | No |
CLOUDFLARE_PROXY_SECRET |
Cloudflare worker proxy secret | No |
V2EX_TOKEN |
V2EX API v2 personal access token (enables auto-fetching topic replies) | No |
V2EX_BASE_URL |
V2EX base URL, /api/v2 is appended automatically (e.g. https://www.v2ex.com) |
No |
V2EX_REPLIES_TTL |
Minutes to cache v2ex replies before re-fetching (default 30) |
No |
HN_BASE_URL |
Algolia HN base URL, /api/v1 is appended automatically; set to enable auto-fetching HN story comments, no credentials needed (e.g. https://hn.algolia.com; unset to disable) |
No |
HN_COMMENTS_TTL |
Minutes to cache HN comments before re-fetching (default 30) |
No |
PADDLE_PUBLIC_KEY |
Paddle public key | No |
PADDLE_API_URL |
Paddle API URL | No |
PADDLE_VENDOR_ID |
Paddle vendor ID | No |
PADDLE_VENDOR_AUTH_CODE |
Paddle vendor auth code | No |
SENTRY_DSN |
Sentry error tracking DSN | No |
GRAVATAR_CDN |
Gravatar CDN URL (leave empty for default) | No |
FREE_MODE |
Free mode (enabled by default, set to false to enable paid plans) |
No |
App Environment Variables
| Variable | Description | Required |
|---|---|---|
PRODUCT_URL |
Product URL | Yes |
PRODUCT_NAME |
Product name | Yes |
PRODUCT_DESCRIPTION |
Product description | No |
API_URL |
API endpoint URL | Yes |
SENTRY_DSN |
Sentry DSN | No |
PADDLE_VENDOR_ID |
Paddle vendor ID | No |
UMAMI_WEBSITE_ID |
Umami Website ID | No |
UMAMI_URL |
Umami Instance URL | No |
FREE_MODE |
Free mode (enabled by default, set to false to enable paid plans) |
No |
Production Deployment with Reverse Proxy
For production, it is highly recommended to use the provided nginx.example.conf (renamed to nginx.conf) or your own reverse proxy to:
- Handle SSL/TLS certificates
- Route requests to appropriate services
- Serve both app and API from the same domain
Structure:
Security Best Practices
- Change Default Passwords: Update database password in
docker-compose.yml - Use Strong JWT Secret: Generate a secure random string for
JWT_SECRET - Enable HTTPS: Use a reverse proxy with SSL/TLS certificates
- Restrict Ports: Only expose necessary ports to the public
- Regular Updates: Keep Docker images and dependencies updated
- Environment Variables: Never commit
.envfiles to version control - Database Backups: Set up automated database backups
Development Scripts
yarn api # Start API server
yarn dev # Start all services with PM2
yarn db:migrate # Run database migrations
yarn start # Start App development server
Support
- Change Default Passwords: Update database password in
docker-compose.yml - Use Strong JWT Secret: Generate a secure random string for
JWT_SECRET - Enable HTTPS: Use a reverse proxy with SSL/TLS certificates
- Restrict Ports: Only expose necessary ports to the public
- Regular Updates: Keep Docker images and dependencies updated
- Environment Variables: Never commit
.envfiles to version control
Development Scripts
yarn api # Start API server
yarn dev # Start all services with PM2
yarn db:migrate # Run database migrations
yarn start # Start App development server
Support
If you find this project helpful, consider supporting the development:
Explore projetos relacionados
Carregando…