do i need to add package-lock.json to git
Yes.
Explanation: To run the application, the dependencies must have been installed
before. So when you run "npm install", you need to know the version of each
dependency, which is stored inside package-lock.json.