maranR
maranR

Reputation: 423

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

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.

Upvotes: 1

Views: 147

Answers (1)

R sukumar
R sukumar

Reputation: 100

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

Upvotes: 1

Related Questions