https://github.com/anthonyec/231126_news_swap
https://github.com/anthonyec/231126_news_swap
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anthonyec/231126_news_swap
- Owner: anthonyec
- Created: 2023-11-26T22:20:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T13:13:47.000Z (over 1 year ago)
- Last Synced: 2025-02-13T00:26:23.510Z (4 months ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# News swap prototype
Prototyping an idea from [Zdenek](https://github.com/zdenekhynek).
## Requirements
- Node 18
## Getting started
```sh
npm ci
npm run dev
```To swap news sources use the URL scheme `/swap/:source/:destination`. Source is where the news content should come from, and destination is the layout used to display the content.
For example to display Daily Mail content in the BBC News layout, go to `/swap/dailymail/bbc`.
The full list of available news websites can be found in `./src/sites.ts`. Use the `id` as the source or destination.