I hereby claim:
- I am keithnorm on github.
- I am keithnorm (https://keybase.io/keithnorm) on keybase.
- I have a public key ASBspotMLhOtq2kgmly3cTLjmCK53o0ogp6g-u_rIJk6Pgo
To claim this, I am signing this object:
| class TodoApp extends React.Component { | |
| constructor({db}) { | |
| super(); | |
| this.db = db; | |
| this.state = { | |
| todos: [], | |
| text: '', | |
| } | |
| } |
| //on the client | |
| import Zango from 'zangodb'; | |
| let db = new Zango.Db('todo_app', { todos: [] }); | |
| ReactDOM.render( | |
| <TodoApp db={db}/>, | |
| document.getElementById('app') | |
| ); |
| // on the server | |
| import { renderToStaticMarkup } from 'react-dom/server'; | |
| import MongoClient from 'mongodb'; | |
| app.get('*', (req, res) => { | |
| var url = 'mongodb://localhost:27017/todo-app'; | |
| MongoClient.connect(url, function(err, db) { | |
| res.status(200).render('layout', { | |
| locals: { | |
| body: renderToStaticMarkup(<TodoApp db={db}/>), |
| <body> | |
| <div id=’app’> | |
| ${body} | |
| </div> | |
| </body> |
| import { renderToStaticMarkup } from 'react-dom/server'; | |
| app.get('*', (req, res) => { | |
| res.status(200).render('layout', { | |
| locals: { | |
| body: renderToStaticMarkup(<TodoApp/>), | |
| } | |
| }); | |
| }); |
| import Zango from 'zangodb'; | |
| let db = new Zango.Db('todo_app', { todos: [] }); | |
| class TodoApp extends React.Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| todos: [], |
| 0x4db7a13ae9df91f427508e5b2253be851c3cbd14 |
| /** | |
| * Copyright 2015 SmartThings | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| * in compliance with the License. You may obtain a copy of the License at: | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | |
| * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License |
| /** | |
| * iQuue Access Control | |
| * | |
| * Copyright 2016 iQuue | |
| * | |
| */ | |
| import groovy.json.JsonSlurper | |
| include 'asynchttp_v1'; | |
| def getAPIURL() { |
I hereby claim:
To claim this, I am signing this object: