The purpose of this project is to fetch data stored in db.json file in the root directory of our project.
The content of db.json coud be anything, but in my case i had particularly selected the code used in fullstack course uni_of_helsinki. content of db.json are as below.

{"anecdotes":[{"content": "If it hurts, do it more often","id": "47145","votes": 0},{"content": "Adding manpower to a late software project makes it later!","id": "21149","votes": 0},{"content": "The first 90 percent of the code accounts for the first 90 percent of the development time...The…


It has took almost some time to resolve this as whenever i was pushing my repo onto the github through vscode there was white icon appearing across one of my folder and that folder was test folder in my case. That’s because when i was working on my code i inadvertently did “git init” inside a test folder and that created a nested git repository.

The workaround for that in vscode editor(as i was using that during testing) is as following:
1. Go to the settings of vscode and type "files.exclude" and make **/.git: false
2. Now you will be able to…

Syed Mannawar Hussain

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store