DEV Community

Cover image for Create Your Github readme with automated news data
mridul037
mridul037

Posted on

Create Your Github readme with automated news data

GitHub added a new feature ,where you could have a README on your GitHub profile.It could be used as portfolio or just a fun project.

GitHub profile README

So what is that GitHub profile README thingy? Its a cool new feature by GitHub which allows you to have a README on your profile. Sounds cool? Surely it is. Time to get creative ๐Ÿ˜‹.

How to include TeachCrunch news api data in readme

So to access the news API, you need to have an access key.
which you can get here https://newsapi.org/
So how do we get TeachCrunch news? Well, the answer is really easy. So we will do it in NodeJS. We will install some dependencies.

We installed 3 dependencies here, but express , dotenv and isomorphic-unfetch.
npm i isomorphic-unfetch

index.js
(code snipit)
Alt Text

The auto updating README

Create README.template.md with replacement tags

Alt Text

Using Github Actions for AutoUpdate

Now we have created the scripts, we need to automate it to update the README every hour. For this, we will use GitHub's actions.
Alt Text
As a bonus, I also used the Programming Quotes API to get the quote of the hour.

what you get

github link:

Hi, I'm Mridul

A passionate developer from India


Hi, I'm Mridul Shukla, a Full Stack Developer ๐Ÿš€ from India, Freelancer, completed masters of computer application from HBTU-kanpur I have done some internship's onsite and remote. Beside's programming, I enjoy eating food, practicing yoga and watching anime.


mriduls LinkdeIN mriduls Leetcode mriduls facebook

Quote of the hour:

I never in my wildest dreams would have predicted the evolution of the Internet. And I never wouldโ€™ve predicted the degree to which corporate influence over the Internet has changed its character over time.

~ L. Peter Deutsch

Languages and Tools:

react android cplusplus html5 javascript typescript mongodb mysql postgresql nodejs nginx


GIF

Talking about Personal Stuffs:

  • ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป Iโ€™m currently working on Node.js,React.js,Angular,MySql,Rxjs

  • ๐ŸŒฑ I am currently learning IPFS(peer2peer),docker,Flutter,Data Science.

  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on anything free and open source.

  • ๐Ÿค” Iโ€™m looking for help with Data Structures and Algorithms ๐Ÿ˜ญ;

  • ๐Ÿ’ฌAsk me about react, Angular and nodejs

  • ๐Ÿ“ซ How to reach me: mridulshukla037@gmail.com;

GIF

mridul

Daily News

  • Ring doorbellsโ€ฆ







Alt Text

Top comments (0)