This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { conenct } from 'react-redux'; | |
import { compose } from 'recompose'; | |
const enhance = compose( | |
connect( | |
state => ({ | |
campers: state.campers.lists | |
}) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Application Server | |
*/ | |
import express from 'express'; | |
import { WebApp } from 'meteor/webapp'; | |
import main from './main'; | |
export default async function server () { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* GraphQL rourte | |
*/ | |
'use strict'; | |
import { graphqlExpress } from 'graphql-server-express'; | |
import { makeExecutableSchema } from 'graphql-tools'; | |
import { parse } from 'graphql'; | |
import { schema, resolvers } from '../modules/ide/index-ide'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* GraphQL rourte | |
*/ | |
'use strict'; | |
import { Meteor } from 'meteor/meteor'; | |
import { WebApp } from 'meteor/webapp'; | |
import { Accounts } from 'meteor/accounts-base'; | |
import { check } from 'meteor/check'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose'); | |
var repository = function (modelName) { | |
var self = this; | |
self.Model = require('../models/' + modelName); | |
self.FindById = function (id, cb) { | |
self.FindOne({ |