etnbrd/flx-compiler

View on GitHub
test-set/node.tingo-rest-master/sample/index.js

Summary

Maintainability
A
0 mins
Test Coverage

var express = require('express');
var tingoRest = require('../index');
var fs = require('fs');

fs.mkdirSync(__dirname + '/data');

var app = express();

app.use('/api',tingoRest(__dirname + '/data'));

var server = app.listen(3000, function () {

  var host = server.address().address;
  var port = server.address().port;

  console.log('Test app listening at http://%s:%s', host, port);

});