blockstack
Version:
The Blockstack Javascript library for authentication, identity, and storage.
18 lines (14 loc) • 438 B
JavaScript
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)
}
return console.log(`server is listening on ${port}`)
})