UNPKG

blockstack

Version:

The Blockstack Javascript library for identity and authentication.

16 lines (14 loc) 435 B
const express = require('express') const app = express() const port = 5000 const path = require('path') app.use('/', express.static(__dirname + '/proofs')) app.get('/bundle.js', (request, response) => { response.sendFile('dist/blockstack.js', { root: path.resolve('./') }) }) app.listen(port, (err) => { if (err) { return console.log('something bad happened', err) } console.log(`server is listening on ${port}`) })