# How to start Solid server programmitcally and gets HTTPS?

**URL:** https://forum.solidproject.org/t/how-to-start-solid-server-programmitcally-and-gets-https/2527
**Category:** Build a Solid App
**Created:** [December 26, 2019, 7:20am UTC](https://forum.solidproject.org/t/how-to-start-solid-server-programmitcally-and-gets-https/2527 "2019-12-26T07:20:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![linonetwo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/linonetwo/32/4039_2.png) [@linonetwo](https://forum.solidproject.org/u/linonetwo)
#### Post date: [December 26, 2019, 7:20am UTC](https://forum.solidproject.org/t/how-to-start-solid-server-programmitcally-and-gets-https/2527/1 "2019-12-26T07:20:23Z")

</div>

I want to make a desktop app using the electron.

To allow local offline usage, I would like to start a local SoLiD server, all data will firstly store at local POD, then a corn job script will sync data to an online POD if the network is good.

But I haven’t seen any instruction on how to start [https://www.npmjs.com/package/solid-server](https://www.npmjs.com/package/solid-server) using JS, there is only Command Line Usage.

---

<div class="post-metadata">

### Author: ![A\_A](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/a_a/32/786_2.png) [@A\_A](https://forum.solidproject.org/u/A_A)
#### Post date: [December 26, 2019, 8:57am UTC](https://forum.solidproject.org/t/how-to-start-solid-server-programmitcally-and-gets-https/2527/2 "2019-12-26T08:57:55Z")

</div>

I’m not familiar with NSS so I don’t know if there is a js version to start it. With nodejs you could use [exec](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) to run a shell command.

If you don’t need all the features which NSS provides, you could use [solid-auth-cli](https://github.com/jeff-zucker/solid-auth-cli/) which is based on [solid-rest](https://github.com/jeff-zucker/solid-rest/) or [solid-local-pod](https://github.com/otto-aa/solid-local-pod). They all allow to use the file system as a pod, but don’t implement 100% of the Solid rest api. solid-local-pod can be used to run it on localhost, solid-auth-cli allows making “file:///some/path” requests in your app. You can also solid-rest as a parameter to solid-local-pod if you want.

---

<div class="post-metadata">

### Author: ![megoth](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/megoth/32/8_2.png) [@megoth](https://forum.solidproject.org/u/megoth)
#### Post date: [December 26, 2019, 9:40am UTC](https://forum.solidproject.org/t/how-to-start-solid-server-programmitcally-and-gets-https/2527/3 "2019-12-26T09:40:31Z")

</div>

You might want to check out Tim’s project [Data Kitchen](https://github.com/solid/data-kitchen). It doesn’t run NSS, but the idea is to access files locally through the File System API, and to synchronize with the Pod once a network connection is available.
