Home > Enterprise >  How to store the Live Time in Json File using Node js?
How to store the Live Time in Json File using Node js?

Time:12-16

I'm new in node js, when I create the Countdown Clock, Using With Nodejs and javascript,

I'm facing an issue with When the server restarted The Timer also Restarted

enter image description here

JSON File Using

StartTime.json 

    "UserTime": [
            {
                "id": 1,
                "name": "Jack",
                "TimeDuration": 25:00
            },
            {
                "id": 2,
                "name": "Mike",
                "TimeDuration": 30:00
            }
    ]

StartTime -> 30:00 mins, ReminingLiveTime->24:52;

After Restarting I need the Same ReminingLiveTime to be stored on the server.

CodePudding user response:

I understood Your Question, Initially you Just Create Custom Api, Before Restarting The Server Pass the Time On it

  • Related