@startupjs/server
Express.js with plugged in ShareDB
Last updated a month ago by yska .
Original npm · Tarball · package.json
$ cnpm install @startupjs/server 
SYNC missed versions from official npm registry.

startupjs dm-sharedb-server

Express.js server with ShareDB, configs system, and react-router support for rendering client apps.

Usage

import startupjsServer from '@startupjs/server'

startupjsServer({ getHead }, ee => {
  ee.on('routes', expressApp => {
    expressApp.get('/api', async (req, res) => {
      let { model } = req
      let $counter = model.at('counters.first')
      await $counter.subscribeAsync()
      res.json({ name: 'Test API', counter: $counter.get() })
    })
  })
})

const getHead = appName => `
  <title>HelloWorld</title>
  <!-- Put vendor JS and CSS here -->
`

MIT Licence

Copyright (c) 2016 Pavel Zhukov

Current Tags

  • 0.21.1                                ...           latest (a month ago)
  • 0.22.0-alpha.24                                ...           next (15 days ago)

55 Versions

  • 0.22.0-alpha.24                                ...           15 days ago
  • 0.22.0-alpha.23                                ...           15 days ago
  • 0.22.0-alpha.22                                ...           15 days ago
  • 0.22.0-alpha.20                                ...           16 days ago
  • 0.22.0-alpha.0                                ...           a month ago
  • 0.21.1                                ...           a month ago
  • 0.21.0                                ...           a month ago
  • 0.20.0                                ...           a month ago
  • 0.19.2                                ...           2 months ago
  • 0.19.1                                ...           2 months ago
  • 0.19.0                                ...           2 months ago
  • 0.18.4                                ...           2 months ago
  • 0.18.3                                ...           2 months ago
  • 0.18.2                                ...           2 months ago
  • 0.18.1                                ...           2 months ago
  • 0.18.0                                ...           2 months ago
  • 0.17.4                                ...           2 months ago
  • 0.17.3                                ...           2 months ago
  • 0.17.2                                ...           2 months ago
  • 0.17.0                                ...           2 months ago
  • 0.16.2                                ...           2 months ago
  • 0.16.0                                ...           2 months ago
  • 0.15.5                                ...           3 months ago
  • 0.15.0                                ...           3 months ago
  • 0.14.6                                ...           4 months ago
  • 0.14.5                                ...           4 months ago
  • 0.14.1                                ...           4 months ago
  • 0.13.0                                ...           4 months ago
  • 0.12.0                                ...           4 months ago
  • 0.11.2                                ...           5 months ago
  • 0.11.1                                ...           5 months ago
  • 0.11.0                                ...           5 months ago
  • 0.10.5                                ...           6 months ago
  • 0.10.2                                ...           6 months ago
  • 0.10.0                                ...           6 months ago
  • 0.9.6                                ...           6 months ago
  • 0.9.0                                ...           6 months ago
  • 0.8.1                                ...           7 months ago
  • 0.8.0                                ...           7 months ago
  • 0.7.2                                ...           7 months ago
  • 0.7.1                                ...           7 months ago
  • 0.7.0                                ...           7 months ago
  • 0.6.8                                ...           7 months ago
  • 0.6.4                                ...           8 months ago
  • 0.6.3                                ...           8 months ago
  • 0.6.2                                ...           8 months ago
  • 0.6.1                                ...           8 months ago
  • 0.5.2                                ...           8 months ago
  • 0.5.0                                ...           8 months ago
  • 0.4.1                                ...           8 months ago
  • 0.4.0                                ...           8 months ago
  • 0.3.16                                ...           8 months ago
  • 0.3.14                                ...           9 months ago
  • 0.3.12                                ...           9 months ago
  • 0.3.4                                ...           9 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 63
Dependencies (12)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |