This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const NFC = require('nfc-pcsc'); | |
const pretty = require('./pretty'); | |
const nfc = new NFC.default(); // optionally you can pass logger | |
let readers = []; | |
nfc.on('reader', reader => { | |
// disable auto processing | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var Todo = require('./models/todo'); | |
var app = express(); | |
//app.use(bodyParser.urlencoded({extended:false})); | |
app.use(bodyParser.json()); | |
app.get('/api/todos',function(req,res,next){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Todo</title> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" type="text/css" media="screen" charset="utf-8"> | |
<style type="text/css" media="screen"> | |
.done-true{ | |
text-decoration:line-through; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
verbose: logger hook loaded successfully. | |
verbose: request hook loaded successfully. | |
verbose: Loading the app's models and adapters... | |
verbose: Loading app models... | |
verbose: Loading app adapters... | |
verbose: Loading blueprint middleware... | |
verbose: blueprints hook loaded successfully. | |
verbose: Loading runtime custom response definitions... | |
verbose: responses hook loaded successfully. | |
verbose: controllers hook loaded successfully. |