https://github.com/adrianmg/adrianmato.art-notion
Fetching and storing download stats from adrianmato.art into notion
https://github.com/adrianmg/adrianmato.art-notion
deno javascript notion postgres typescript
Last synced: 5 months ago
JSON representation
Fetching and storing download stats from adrianmato.art into notion
- Host: GitHub
- URL: https://github.com/adrianmg/adrianmato.art-notion
- Owner: adrianmg
- License: mit
- Created: 2025-07-06T21:03:10.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-07-18T06:36:00.000Z (5 months ago)
- Last Synced: 2025-07-25T00:52:22.536Z (5 months ago)
- Topics: deno, javascript, notion, postgres, typescript
- Language: TypeScript
- Homepage: https://adrianmato.art
- Size: 30.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno Project
A minimal Deno project that fetches download stats from the database behind https://adrianmato.art and stores them in a Notion table.

## Scripts
- Start: `deno task start`
- Test: `deno task test`
- Lint: `deno lint`
- Format: `deno fmt`
## Project structure
- `src/main.ts` — Entry point
- `src/notion.ts` — Notion API calls
- `src/test.ts` — Tests (DB + Notion)
- `src/utils.ts` — Environment loader
- `.github/workflows/notion-daily.yml` — Syncs data daily via GitHub Actions
- `deno.json` — Deno configuration
- `README.md` — Project info
## Environment variables
To run the app and tests, set the following environment variables:
```
DB_USER: Database user
DB_HOST: Database host
DB_PORT: Database port
DB_DATABASE: Database name
DB_PASSWORD: Database password
NOTION_API_KEY: Notion integration API keyptest
NOTION_DATABASE_ID: Notion database ID
```
For GitHub Actions, add these as repository secrets in `Settings → Secrets and variables → Actions`.