Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewuweblab/astro-data-sources
Getting, then displaying data in Astro.
https://github.com/ewuweblab/astro-data-sources
Last synced: 2 days ago
JSON representation
Getting, then displaying data in Astro.
- Host: GitHub
- URL: https://github.com/ewuweblab/astro-data-sources
- Owner: ewuweblab
- Created: 2023-11-17T18:59:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-18T01:28:47.000Z (about 1 year ago)
- Last Synced: 2024-11-21T18:29:17.613Z (2 months ago)
- Language: Astro
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astro Data Sources
- Get internal or exertnal data sources
- Diplay data sources
- 3 different options to get data sources
- Option 1: Internal Frontmatter
- Option 2: Local data files
- Option 3: External dataconst dataSource = 'https://gist.githubusercontent.com/ewuweblab/b8c52837370e6e39b3603dea2d0f6a07/raw/ee24073bada30f1a99b1bdfde81e05d389eb120e/emojiHolidays.json';
const response = await fetch(dataSource);
const emojiHolidays = await response.json();{
emojiHolidays.map( holiday => (
{ holiday.emoji } { holiday.name }
)
)
}