@startupjs/server
Express.js with plugged in ShareDB
Last updated a day 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.subscribe()
      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.22.0-canary.0                                ...           canary (3 months ago)
  • 0.23.45                                ...           latest (a day ago)
  • 0.22.0-alpha.46                                ...           next (3 months ago)

71 Versions

  • 0.23.45                                ...           a day ago
  • 0.23.44                                ...           a day ago
  • 0.23.35                                ...           a month ago
  • 0.23.32                                ...           a month ago
  • 0.23.28                                ...           2 months ago
  • 0.23.25                                ...           2 months ago
  • 0.23.21                                ...           2 months ago
  • 0.23.11                                ...           3 months ago
  • 0.23.0                                ...           3 months ago
  • 0.22.4                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.22.0-canary.0                                ...           3 months ago
  • 0.22.0-alpha.46                                ...           3 months ago
  • 0.22.0-alpha.39                                ...           4 months ago
  • 0.22.0-alpha.38                                ...           4 months ago
  • 0.22.0-alpha.37                                ...           4 months ago
  • 0.22.0-alpha.24                                ...           4 months ago
  • 0.22.0-alpha.23                                ...           4 months ago
  • 0.22.0-alpha.22                                ...           4 months ago
  • 0.22.0-alpha.20                                ...           4 months ago
  • 0.22.0-alpha.0                                ...           5 months ago
  • 0.21.1                                ...           5 months ago
  • 0.21.0                                ...           5 months ago
  • 0.20.0                                ...           5 months ago
  • 0.19.2                                ...           5 months ago
  • 0.19.1                                ...           5 months ago
  • 0.19.0                                ...           6 months ago
  • 0.18.4                                ...           6 months ago
  • 0.18.3                                ...           6 months ago
  • 0.18.2                                ...           6 months ago
  • 0.18.1                                ...           6 months ago
  • 0.18.0                                ...           6 months ago
  • 0.17.4                                ...           6 months ago
  • 0.17.3                                ...           6 months ago
  • 0.17.2                                ...           6 months ago
  • 0.17.0                                ...           6 months ago
  • 0.16.2                                ...           6 months ago
  • 0.16.0                                ...           6 months ago
  • 0.15.5                                ...           7 months ago
  • 0.15.0                                ...           7 months ago
  • 0.14.6                                ...           8 months ago
  • 0.14.5                                ...           8 months ago
  • 0.14.1                                ...           8 months ago
  • 0.13.0                                ...           8 months ago
  • 0.12.0                                ...           8 months ago
  • 0.11.2                                ...           8 months ago
  • 0.11.1                                ...           9 months ago
  • 0.11.0                                ...           9 months ago
  • 0.10.5                                ...           10 months ago
  • 0.10.2                                ...           10 months ago
  • 0.10.0                                ...           10 months ago
  • 0.9.6                                ...           10 months ago
  • 0.9.0                                ...           10 months ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           a year ago
  • 0.7.2                                ...           a year ago
  • 0.7.1                                ...           a year ago
  • 0.7.0                                ...           a year ago
  • 0.6.8                                ...           a year ago
  • 0.6.4                                ...           a year ago
  • 0.6.3                                ...           a year ago
  • 0.6.2                                ...           a year ago
  • 0.6.1                                ...           a year ago
  • 0.5.2                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.16                                ...           a year ago
  • 0.3.14                                ...           a year ago
  • 0.3.12                                ...           a year ago
  • 0.3.4                                ...           a year ago
Downloads
Today 0
This Week 25
This Month 0
Last Day 25
Last Week 0
Last Month 26
Dependencies (13)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |