Comments (9)
Finally have a working version: https://content-api.netlify.com/
I'm working on the schema still - I'll report back when the structure is more finalized
from old-kentcdodds.com.
Yes, we could definitely do this with remix. The bulk of the work is the same regardless of the framework used.
from old-kentcdodds.com.
Awesome @trevoradams42! For those watching, Trevor offered to do this himself over lunch today :)
Here are a bunch of places where you can find my content:
- https://kentcdodds.com/blog (all the source for this is in https://github.com/kentcdodds/kentcdodds.com/blob/master/content/blog
- https://kentcdodds.com/talks (data source: https://github.com/kentcdodds/kentcdodds.com/blob/master/src/data/talks.js)
- https://kentcdodds.com/workshops (data source: https://github.com/kentcdodds/kentcdodds.com/blob/master/src/data/workshops.js)
- https://kentcdodds.com/appearances
- https://testingjavascript.com
- https://kcd.im/youtube
- https://kcd.im/ama
- https://kcd.im/3-mins
- https://javascriptair.com
- https://kcd.im/fem
- https://kcd.im/egghead
- https://github.com/topics/kcd-edu
I think that's everything that I have.
For some of these we can probably use them as data sources (like youtube), but for others we'll probably have to make our own JSON files or something to represent the data (like with Frontend Masters).
Also, it'd be cool to highlight the content that's been featured in newsletters as well. I made this about a year ago: https://gist.github.com/kentcdodds/77159995778796a296bf0f30583c431b I know that more of my content has been featured in newsletters since then so we'd need to look around for more of that and then keep the list updated somehow.
from old-kentcdodds.com.
Iโve been able to test out the Gatsby source YouTube
and it works great. Just need to add your channelId
and apiKey
to Gatsby-config. It allows you to use your own local (optimized) thumbnails or use the ones already available from YouTube.
For the GitHub based material, there is a Gatsby Source Github
that seems promising.
For the resources that donโt provide an API, do you imagine the content would change very often that would necessitate web scraping? Otherwise, yeah a JSON file to manage the meta data would be fine.
from old-kentcdodds.com.
That sounds great to me. I think that regular JSON files should be fine. At least to start with ๐
I wonder if it would be best to make an entirely new project on GitHub using Netlify Functions that's basically just a graphql endpoint that combines all the data into the single endpoint. That would give you the flexibility to build and test it yourself and it would also expose all the data in a way that's easy to consume for anyone (my site included).
from old-kentcdodds.com.
yeah!
from old-kentcdodds.com.
Very cool Trevor! Thanks for the update :)
from old-kentcdodds.com.
Hey @tetondev please invite me to collaborate! I volunteer to help.
from old-kentcdodds.com.
Awesome @trevoradams42! For those watching, Trevor offered to do this himself over lunch today :)
Here are a bunch of places where you can find my content:
- https://kentcdodds.com/blog (all the source for this is in https://github.com/kentcdodds/kentcdodds.com/blob/master/content/blog
- https://kentcdodds.com/talks (data source: https://github.com/kentcdodds/kentcdodds.com/blob/master/src/data/talks.js)
- https://kentcdodds.com/workshops (data source: https://github.com/kentcdodds/kentcdodds.com/blob/master/src/data/workshops.js)
- https://kentcdodds.com/appearances
- https://testingjavascript.com
- https://kcd.im/youtube
- https://kcd.im/ama
- https://kcd.im/3-mins
- https://javascriptair.com
- https://kcd.im/fem
- https://kcd.im/egghead
- https://github.com/topics/kcd-edu
I think that's everything that I have.
For some of these we can probably use them as data sources (like youtube), but for others we'll probably have to make our own JSON files or something to represent the data (like with Frontend Masters).
Also, it'd be cool to highlight the content that's been featured in newsletters as well. I made this about a year ago: https://gist.github.com/kentcdodds/77159995778796a296bf0f30583c431b I know that more of my content has been featured in newsletters since then so we'd need to look around for more of that and then keep the list updated somehow.
This could still be done in Remix, I assume in just a different way?
from old-kentcdodds.com.
Related Issues (20)
- Dark mode
- RSS link points to nowhere HOT 5
- Browser cache not clearing from kentcodds --- Question HOT 1
- Update notification about some app HOT 4
- Blog link not updated in writing page HOT 1
- Add linkable headings like in GitHub markdown flavour HOT 4
- npm run setup error after clone kentcdodds.com HOT 2
- iPhone 5/SE layout issues HOT 4
- Can't navigate to blog directly on chrome (android) HOT 2
- Blog not loading in Firefox HOT 2
- Add vebradev for bugs HOT 2
- 2 blogs hiding in "Avoid Nesting when you're Testing"
- Blog posts are in wrong order HOT 2
- White line on cards when hovering HOT 2
- Is still an issue not using `twitter.com/search` instead of `mobile.twitter.com/search` HOT 1
- add Chris HOT 2
- Blog overview page crashes HOT 1
- article on closures HOT 1
- 404 blog post link HOT 3
- Salar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from old-kentcdodds.com.