An open API service indexing awesome lists of open source software.

https://github.com/acyortjs/acyort-server

Server for AcyOrt
https://github.com/acyortjs/acyort-server

Last synced: 2 months ago
JSON representation

Server for AcyOrt

Awesome Lists containing this project

README

          

# acyort-server

LiveReload Server for AcyOrt

## Install

```bash
$ npm i acyort-server -S
```

## Usage

add `acyort-server` to `config.yml`

```yml
# plugins, npm modules
plugins:
- acyort-server
```

use

```bash
# default port 2222
$ acyort server

# custom port
$ acyort server -p 2222
```

it will listen `templates` files change, and reload page or css

> get server status

```js
// on AcyOrt workflow
module.exports = (acyort) => {
acyort.workflow.register(function () {
console.log(acyort.store.get('status', 'acyort-server'))
/*
{
path: '...',
event: '...'
}
*/
})
}
```

## Test

```bash
# install AcyOrt
$ npm i acyort -g

# install packages
$ npm i

# start
$ npm start
```