This file contains hidden or 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
/** imports/startup/server/index.js */ | |
// collections | |
import '../../api/teams/teams'; | |
// publications | |
import '../../api/teams/server/publications'; | |
// methods | |
import '../../api/teams/methods'; |
This file contains hidden or 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
/** imports/startup/client/index.js */ | |
// routes | |
import './routes'; | |
// methods (for optimistic-ui) | |
import '../../api/teams/methods'; |
This file contains hidden or 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
/** imports/ui/pages/App/App.js */ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Meteor } from 'meteor/meteor'; | |
import { createContainer } from 'meteor/react-meteor-data'; | |
import ClickyButton from '../../components/ClickyButton'; | |
import Teams from '../../../api/teams/teams'; | |
import styles from './styles'; |
This file contains hidden or 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
/** imports/startup/server/index.js */ | |
// collections | |
import '../../api/teams/teams'; | |
// publications | |
import '../../api/teams/server/publications'; | |
// methods | |
import '../../api/teams/methods'; |
This file contains hidden or 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
/** imports/startup/server/index.js */ | |
// collections | |
import '../../api/teams/teams'; | |
// publications | |
import '../../api/teams/server/publications'; | |
// fixtures | |
import './fixtures'; |
This file contains hidden or 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
/** imports/startup/server/fixtures.js */ | |
import Teams, { ALL_TEAMS } from '../../api/teams/teams'; | |
if (!Teams.find().count()) { | |
ALL_TEAMS.forEach(name => Teams.insert({ name })); | |
} |
This file contains hidden or 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
/** imports/api/teams/teams.js */ | |
import { Mongo } from 'meteor/mongo'; | |
import { SimpleSchema } from 'meteor/aldeed:simple-schema'; | |
export const ALL_TEAMS = ['red', 'green', 'blue']; | |
const Teams = new Mongo.Collection('teams'); | |
Teams.schema = new SimpleSchema({ | |
name: { type: String, allowedValues: ALL_TEAMS }, |
This file contains hidden or 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
/** client/main.css */ | |
body { | |
background: #F5F5F5; | |
} |
This file contains hidden or 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
/** .eslintrc */ | |
{ | |
"extends": "@meteorjs/eslint-config-meteor" | |
} |
NewerOlder