diff --git a/api/app.py b/api/app.py deleted file mode 100644 index 18a7b9a..0000000 --- a/api/app.py +++ /dev/null @@ -1,11 +0,0 @@ -#!flask/bin/python -from flask import Flask - -app = Flask(__name__) - -@app.route('/') -def index(): - return "Hello, TFM!" - -if __name__ == '__main__': - app.run(debug=True) diff --git a/api/requirements.txt b/api/requirements.txt deleted file mode 100644 index 632a1ef..0000000 --- a/api/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -Flask==0.10.1 diff --git a/app/.meteor/.finished-upgraders b/app/.meteor/.finished-upgraders new file mode 100644 index 0000000..61ee313 --- /dev/null +++ b/app/.meteor/.finished-upgraders @@ -0,0 +1,12 @@ +# 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 diff --git a/app/.meteor/.gitignore b/app/.meteor/.gitignore new file mode 100644 index 0000000..4083037 --- /dev/null +++ b/app/.meteor/.gitignore @@ -0,0 +1 @@ +local diff --git a/app/.meteor/.id b/app/.meteor/.id new file mode 100644 index 0000000..a8a12ab --- /dev/null +++ b/app/.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 + +169m9rg1qmc8aw1xbxxgm diff --git a/app/.meteor/packages b/app/.meteor/packages new file mode 100644 index 0000000..256e87a --- /dev/null +++ b/app/.meteor/packages @@ -0,0 +1,24 @@ +# 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 +session # Client-side reactive dictionary for your app +jquery # Helpful client-side library +tracker # Meteor's client-side reactive programming library + +standard-minifiers # JS/CSS minifiers 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) +less +huttonr:bootstrap3 +nimble:restivus +momentjs:moment diff --git a/app/.meteor/platforms b/app/.meteor/platforms new file mode 100644 index 0000000..efeba1b --- /dev/null +++ b/app/.meteor/platforms @@ -0,0 +1,2 @@ +server +browser diff --git a/app/.meteor/release b/app/.meteor/release new file mode 100644 index 0000000..3a05e0a --- /dev/null +++ b/app/.meteor/release @@ -0,0 +1 @@ +METEOR@1.2.1 diff --git a/app/.meteor/versions b/app/.meteor/versions new file mode 100644 index 0000000..2ef1884 --- /dev/null +++ b/app/.meteor/versions @@ -0,0 +1,78 @@ +accounts-base@1.2.2 +autopublish@1.0.4 +autoupdate@1.2.4 +babel-compiler@5.8.24_1 +babel-runtime@0.1.4 +base64@1.0.4 +binary-heap@1.0.4 +blaze@2.1.3 +blaze-html-templates@1.0.1 +blaze-tools@1.0.4 +boilerplate-generator@1.0.4 +caching-compiler@1.0.0 +caching-html-compiler@1.0.2 +callback-hook@1.0.4 +check@1.1.0 +coffeescript@1.0.11 +ddp@1.2.2 +ddp-client@1.2.1 +ddp-common@1.2.2 +ddp-rate-limiter@1.0.0 +ddp-server@1.2.2 +deps@1.0.9 +diff-sequence@1.0.1 +ecmascript@0.1.6 +ecmascript-runtime@0.2.6 +ejson@1.0.7 +es5-shim@4.1.14 +fastclick@1.0.7 +geojson-utils@1.0.4 +hot-code-push@1.0.0 +html-tools@1.0.5 +htmljs@1.0.5 +http@1.1.1 +huttonr:bootstrap3@3.3.5_10 +huttonr:bootstrap3-assets@3.3.5_6 +id-map@1.0.4 +insecure@1.0.4 +jquery@1.11.4 +launch-screen@1.0.4 +less@2.5.1 +livedata@1.0.15 +localstorage@1.0.5 +logging@1.0.8 +meteor@1.1.10 +meteor-base@1.0.1 +minifiers@1.1.7 +minimongo@1.0.10 +mobile-experience@1.0.1 +mobile-status-bar@1.0.6 +momentjs:moment@2.10.6 +mongo@1.1.3 +mongo-id@1.0.1 +nimble:restivus@0.8.4 +npm-mongo@1.4.39_1 +observe-sequence@1.0.7 +ordered-dict@1.0.4 +promise@0.5.1 +random@1.0.5 +rate-limit@1.0.0 +reactive-dict@1.1.3 +reactive-var@1.0.6 +reload@1.1.4 +retry@1.0.4 +routepolicy@1.0.6 +service-configuration@1.0.5 +session@1.1.1 +simple:json-routes@1.0.4 +spacebars@1.0.7 +spacebars-compiler@1.0.7 +standard-minifiers@1.0.2 +templating@1.1.5 +templating-tools@1.0.0 +tracker@1.0.9 +ui@1.0.8 +underscore@1.0.4 +url@1.0.5 +webapp@1.2.3 +webapp-hashing@1.0.5 diff --git a/app/client/app.html b/app/client/app.html new file mode 100644 index 0000000..bb3a8e5 --- /dev/null +++ b/app/client/app.html @@ -0,0 +1,25 @@ + + + + + + TFM + + + + + + + + + +
+
+ {{> display}} +
+
+ + diff --git a/app/client/app.js b/app/client/app.js new file mode 100644 index 0000000..5793d2e --- /dev/null +++ b/app/client/app.js @@ -0,0 +1,17 @@ +if (Meteor.isClient) { + + Template.display.helpers({ + temperatures: function () { + return Temperatures.find({}, {sort: {created_at: -1}}) + } + }); + + Template.display.events({ + }); + + Template.temperature.helpers({ + created_at_formatted: function() { + return moment(this.created_at).format("DD.MM.YYYY, HH:MM") + } + }); +} diff --git a/app/client/app.less b/app/client/app.less new file mode 100644 index 0000000..6e207e3 --- /dev/null +++ b/app/client/app.less @@ -0,0 +1,4 @@ +.hello { + padding: 40px 15px; + text-align: center; +} diff --git a/app/client/bootstrap-settings.json b/app/client/bootstrap-settings.json new file mode 100644 index 0000000..a49a53a --- /dev/null +++ b/app/client/bootstrap-settings.json @@ -0,0 +1,68 @@ +{ + "less": { + "customVariables": false, + + "exposeMixins": false, + + "compile": true, + + "modules": { + "alerts": true, + "badges": true, + "breadcrumbs": true, + "button-groups": true, + "buttons": true, + "carousel": true, + "close": true, + "code": true, + "component-animations": true, + "dropdowns": true, + "forms": true, + "glyphicons": true, + "grid": true, + "input-groups": true, + "jumbotron": true, + "labels": true, + "list-group": true, + "media": true, + "modals": true, + "navbar": true, + "navs": true, + "normalize": true, + "pager": true, + "pagination": true, + "panels": true, + "popovers": true, + "print": true, + "progress-bars": true, + "responsive-embed": true, + "responsive-utilities": true, + "scaffolding": true, + "tables": true, + "thumbnails": true, + "tooltip": true, + "type": true, + "utilities": true, + "wells": true + } + }, + + "javascript": { + "expose": false, + + "modules": { + "affix": true, + "alert": true, + "button": true, + "carousel": true, + "collapse": true, + "dropdown": true, + "modal": true, + "popover": true, + "scrollspy": true, + "tab": true, + "tooltip": true, + "transition": true + } + } +} diff --git a/app/client/display.html b/app/client/display.html new file mode 100644 index 0000000..03cf7be --- /dev/null +++ b/app/client/display.html @@ -0,0 +1,7 @@ + diff --git a/app/client/temperature.html b/app/client/temperature.html new file mode 100644 index 0000000..a99f3e2 --- /dev/null +++ b/app/client/temperature.html @@ -0,0 +1,3 @@ + diff --git a/app/common/collections.js b/app/common/collections.js new file mode 100644 index 0000000..aaa8038 --- /dev/null +++ b/app/common/collections.js @@ -0,0 +1,2 @@ + +Temperatures = new Mongo.Collection("temperatures"); diff --git a/app/server/startup.js b/app/server/startup.js new file mode 100644 index 0000000..f1caf9f --- /dev/null +++ b/app/server/startup.js @@ -0,0 +1,24 @@ +if (Meteor.isServer) { + Meteor.startup(function() { + // code to run on server at startup + }); + + // Global API configuration + var Api = new Restivus({ + useDefaultAuth: true, + prettyJson: true + }); + + Api.addRoute('temperatures', { + authRequired: false + }, { + post: function() { + Temperatures.insert({ + value: parseFloat(this.bodyParams.value), + owner: this.bodyParams.owner, + created_at: new Date() + }); + return []; + } + }); +} diff --git a/configurator/app.py b/configurator/app.py deleted file mode 100644 index 18a7b9a..0000000 --- a/configurator/app.py +++ /dev/null @@ -1,11 +0,0 @@ -#!flask/bin/python -from flask import Flask - -app = Flask(__name__) - -@app.route('/') -def index(): - return "Hello, TFM!" - -if __name__ == '__main__': - app.run(debug=True) diff --git a/configurator/requirements.txt b/configurator/requirements.txt deleted file mode 100644 index 632a1ef..0000000 --- a/configurator/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -Flask==0.10.1 diff --git a/ui/web/index.html b/ui/web/index.html deleted file mode 100644 index 9307fff..0000000 --- a/ui/web/index.html +++ /dev/null @@ -1 +0,0 @@ -Hello TFM!