hackernews-react-graphql
hackernews-react-graphql copied to clipboard
question about building(what should I do next to get data)
I run npm start
then the project runs, what should I do next to get data from HN? I need to apply for API keys?
Thx!
I believe it should automatically be making requests to the HN API, but the project maintains it's own in memory cache of the news feed indeces, so you might need to wait for a delay
defined in the server.ts file (based on whether it's NODE_ENV=production or development) before it prefetches that
I change it to this:
// Seed the in-memory data using the HN api
// const delay = dev ? ONE_MINUTE : 0;
const delay = 0;
run the project
still see no data XD
If I wan't to develop with sample data
I just need to run npm start?
still see no data in the default page
I believe it should automatically be making requests to the HN API, but the project maintains it's own in memory cache of the news feed indeces, so you might need to wait for a
delay
defined in the server.ts file (based on whether it's NODE_ENV=production or development) before it prefetches that
HN don't have GraphQL API, so? XD