diff --git a/.gitignore b/.gitignore index a09c56d..9f0fdca 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/.idea +/.idea/ +/node_modules/ diff --git a/.meteor/.finished-upgraders b/.meteor/.finished-upgraders new file mode 100644 index 0000000..dacc2c0 --- /dev/null +++ b/.meteor/.finished-upgraders @@ -0,0 +1,13 @@ +# This file contains information which helps Meteor properly upgrade your +# app when you run 'meteor update'. You should check it into version control +# with your project. + +notices-for-0.9.0 +notices-for-0.9.1 +0.9.4-platform-file +notices-for-facebook-graph-api-2 +1.2.0-standard-minifiers-package +1.2.0-meteor-platform-split +1.2.0-cordova-changes +1.2.0-breaking-changes +1.3.0-split-minifiers-package diff --git a/.meteor/.gitignore b/.meteor/.gitignore new file mode 100644 index 0000000..4083037 --- /dev/null +++ b/.meteor/.gitignore @@ -0,0 +1 @@ +local diff --git a/.meteor/.id b/.meteor/.id new file mode 100644 index 0000000..04d9628 --- /dev/null +++ b/.meteor/.id @@ -0,0 +1,7 @@ +# This file contains a token that is unique to your project. +# Check it into your repository along with the rest of this directory. +# It can be used for purposes such as: +# - ensuring you don't accidentally deploy one app on top of another +# - providing package authors with aggregated statistics + +137pjsh93btkm6j4x7t diff --git a/.meteor/packages b/.meteor/packages new file mode 100644 index 0000000..d4c8001 --- /dev/null +++ b/.meteor/packages @@ -0,0 +1,21 @@ +# Meteor packages used by this project, one per line. +# Check this file (and the other files in this directory) into your repository. +# +# 'meteor add' and 'meteor remove' will edit this file for you, +# but you can also edit it by hand. + +meteor-base # Packages every Meteor app needs to have +mobile-experience # Packages for a great mobile UX +mongo # The database Meteor supports right now +blaze-html-templates # Compile .html files into Meteor Blaze views +reactive-var # Reactive variable for tracker +jquery # Helpful client-side library +tracker # Meteor's client-side reactive programming library + +standard-minifier-css # CSS minifier run for production mode +standard-minifier-js # JS minifier run for production mode +es5-shim # ECMAScript 5 compatibility for older browsers. +ecmascript # Enable ECMAScript2015+ syntax in app code + +autopublish # Publish all data to the clients (for prototyping) +insecure # Allow all DB writes from clients (for prototyping) diff --git a/.meteor/platforms b/.meteor/platforms new file mode 100644 index 0000000..efeba1b --- /dev/null +++ b/.meteor/platforms @@ -0,0 +1,2 @@ +server +browser diff --git a/.meteor/release b/.meteor/release new file mode 100644 index 0000000..940e0b5 --- /dev/null +++ b/.meteor/release @@ -0,0 +1 @@ +METEOR@1.3.2.4 diff --git a/.meteor/versions b/.meteor/versions new file mode 100644 index 0000000..0e2f545 --- /dev/null +++ b/.meteor/versions @@ -0,0 +1,69 @@ +allow-deny@1.0.4 +autopublish@1.0.7 +autoupdate@1.2.9 +babel-compiler@6.6.4 +babel-runtime@0.1.8 +base64@1.0.8 +binary-heap@1.0.8 +blaze@2.1.7 +blaze-html-templates@1.0.4 +blaze-tools@1.0.8 +boilerplate-generator@1.0.8 +caching-compiler@1.0.4 +caching-html-compiler@1.0.6 +callback-hook@1.0.8 +check@1.2.1 +ddp@1.2.5 +ddp-client@1.2.7 +ddp-common@1.2.5 +ddp-server@1.2.6 +deps@1.0.12 +diff-sequence@1.0.5 +ecmascript@0.4.3 +ecmascript-runtime@0.2.10 +ejson@1.0.11 +es5-shim@4.5.10 +fastclick@1.0.11 +geojson-utils@1.0.8 +hot-code-push@1.0.4 +html-tools@1.0.9 +htmljs@1.0.9 +http@1.1.5 +id-map@1.0.7 +insecure@1.0.7 +jquery@1.11.8 +launch-screen@1.0.11 +livedata@1.0.18 +logging@1.0.12 +meteor@1.1.14 +meteor-base@1.0.4 +minifier-css@1.1.11 +minifier-js@1.1.11 +minimongo@1.0.16 +mobile-experience@1.0.4 +mobile-status-bar@1.0.12 +modules@0.6.1 +modules-runtime@0.6.3 +mongo@1.1.7 +mongo-id@1.0.4 +npm-mongo@1.4.43 +observe-sequence@1.0.11 +ordered-dict@1.0.7 +promise@0.6.7 +random@1.0.9 +reactive-var@1.0.9 +reload@1.1.8 +retry@1.0.7 +routepolicy@1.0.10 +spacebars@1.0.11 +spacebars-compiler@1.0.11 +standard-minifier-css@1.0.6 +standard-minifier-js@1.0.6 +templating@1.1.9 +templating-tools@1.0.4 +tracker@1.0.13 +ui@1.0.11 +underscore@1.0.8 +url@1.0.9 +webapp@1.2.8 +webapp-hashing@1.0.9 diff --git a/client/main.css b/client/main.css new file mode 100644 index 0000000..b6b4052 --- /dev/null +++ b/client/main.css @@ -0,0 +1 @@ +/* CSS declarations go here */ diff --git a/client/main.html b/client/main.html new file mode 100644 index 0000000..203539b --- /dev/null +++ b/client/main.html @@ -0,0 +1,25 @@ + + simple + + + +

Welcome to Meteor!

+ + {{> hello}} + {{> info}} + + + + + \ No newline at end of file diff --git a/client/main.js b/client/main.js new file mode 100644 index 0000000..ecb3282 --- /dev/null +++ b/client/main.js @@ -0,0 +1,22 @@ +import { Template } from 'meteor/templating'; +import { ReactiveVar } from 'meteor/reactive-var'; + +import './main.html'; + +Template.hello.onCreated(function helloOnCreated() { + // counter starts at 0 + this.counter = new ReactiveVar(0); +}); + +Template.hello.helpers({ + counter() { + return Template.instance().counter.get(); + }, +}); + +Template.hello.events({ + 'click button'(event, instance) { + // increment the counter when button is clicked + instance.counter.set(instance.counter.get() + 1); + }, +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..bab653d --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "name": "moodtracker", + "private": true, + "scripts": { + "start": "meteor run" + }, + "dependencies": { + "meteor-node-stubs": "~0.2.0" + } +} diff --git a/server/main.js b/server/main.js new file mode 100644 index 0000000..31a9e0e --- /dev/null +++ b/server/main.js @@ -0,0 +1,5 @@ +import { Meteor } from 'meteor/meteor'; + +Meteor.startup(() => { + // code to run on server at startup +});