0.0.3 • Published 3 years ago

sitexml-json v0.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

SiteXML core module for site.json (Expressjs middleware)

Installation

yarn add sitejson

Server

Create index.js:

const express = require('express')
const sitejson = require('sitexml-json')

var app = express()

/* SiteXML */
sitejson.useExpressjs(app)
app.use(express.static(`${__dirname}/public/`, {dotfiles: 'allow'}))
/* end SiteXML*/

app.listen(80, console.log("Listen to port 80"))

Run

Make sure that SiteXML files are in public directory. After that, just run the server:

node index