LocalServer

Create new LocalServer

First you need to import the LocalServer function and create a new LocalServer.

const { LocalServer } = require('naturesaving');

const server = new LocalServer({ name: 'Example', path: './database' });

Now the LocalServer is created and can be managed.

To start the server use object.start();

server.start();

To stop the server use object.stop();

server.stop();

Last updated