Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about building(what should I do next to get data) #73

Open
zzz6519003 opened this issue Apr 8, 2022 · 4 comments
Open

question about building(what should I do next to get data) #73

zzz6519003 opened this issue Apr 8, 2022 · 4 comments

Comments

@zzz6519003
Copy link

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!

@zzz6519003 zzz6519003 changed the title question about building question about building(what should I do next to get data) Apr 8, 2022
@clintonwoo
Copy link
Owner

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

@zzz6519003
Copy link
Author

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

@zzz6519003
Copy link
Author

If I wan't to develop with sample data

I just need to run npm start?

still see no data in the default page

@zzz6519003
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants