# Nabladown server

Nabladown server is a computer application that lets you view [nabladown][nabla] files, through a hot reloading server.

![](/nabla-server.webp)

# Quick start

The simplest way to run this is to use `npx` in a folder with [nabladown files][nabla]:

`npx nabladown-server`

Then open browser at `http://localhost:3000`. It will display a list of all `.nd` files, in the folder where the first command was run.

Then use any editor to change your files. The documents will update accordingly.

## Using bun
You can also use `bunx`

`bunx nabladown-server`

> If there is some error try to install it globally using `bun i -g nabladown-server`, and then try again.

# Advanced 

## Change port

It is possible to change the port:

`npx nabladown-server -p 8080`

The above command will run the server on port `8080`.

## Add your style

Just put a `index.css` file in your _root_ folder.


[nabla]: https://pedroth.github.io/nabladown.js

# TODO

- Adding custom css
- Create browser editor
- Using custom nabladown render
- Offline mode
