All Projects → yyx990803 → roetem

yyx990803 / roetem

Licence: other
meteor-like experiment with vue and rethinkdb

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Roetem

Meteor-like experiment using Vue + RethinkDB

NOTE: This is just an experiment.

Example

  • Install RethinkDB
  • npm install yyx990803/roetem
.
├── app.js
└── client
    └── main.js
    └── components
        └── index.vue
// app.js
require('roetem').createApp({
  // default options
  // dbHost: 'localhost',
  // dbPort: 25108
})
// client/main.js
var rootComponent = require('./components/index.vue')
require('roetem').render(rootComponent, '#app')
// client/components/index.vue
<template>
  <h1>{{msg}}</h1>
  <h2>A list</h2>
  <ul>
    <li v-repeat="items" track-by="id">{{text}}</li>
  </ul>
</template>

<script>
var db = require('roetem').db

module.exports = {
  data: {
    msg: 'Hello Roetem!'
  },
  queries: {
    // realtime reactive RQL queries
    items: db.table('items').filter({text: 'lol'})
  }
}
</script>
$ rethinkdb & node app.js

> building client assets...
> done.
> connecting to rethinkdb...
> initializing app...
> app running on port 8000
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].