'How to keep json-server alive permanently?

How to keep json-server alive permanently? As of now, when 'npx json-server --w db.json' this command is ran then json server starts but if my laptop gets off then the server also stops running. Any solution for it?

Note: I tried my-json-server.typicode.com but my .json file is too big so its not working



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source