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

how to do it yourself #1

Closed
prakasharyaman opened this issue Jan 7, 2022 · 0 comments
Closed

how to do it yourself #1

prakasharyaman opened this issue Jan 7, 2022 · 0 comments

Comments

@prakasharyaman
Copy link
Owner

1.clone this repo and upload it your own git .
2. get the url for the repo (the one that you uploaded)
3. the url should look like this : "https://api.github.com/repos/prakasharyaman/NewpaperNews-API/contents/" (test it before if it returns the content)
4. do mind the branch sector (in my case the main branch is named 'main' and not 'master',so u have to edit the branch as per your own name of branch .
5. done.
PRE STEPS
1.u first have to generate a newspai.org api
2.also a github personal access token granting it full permission.
3.create a .env(just ".env",no name needed) file in your main directory and put the following in it :API_KEYS=["api-here", "api-here"] # To fetch the news feed GITHUB_API_TOKEN=token here #for github
4. and now you are done . it should work

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

1 participant