diff --git a/README.md b/README.md index a36b40c..417fafa 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,20 @@ # Homework -Schoolwork management application for students. +Schoolwork management application for students. Built using +[Meteor](http://gihub.com/meteor/meteor), a Web App framework on top of Node.js +and MongoDB. + +I built this because I felt like the other apps didn't do it very well. +Also, I learnt a lot and had fun! ### Try it [the app is hosted online!](http://homework.meteor.com) ### Development Clone the repo, [install meteor](http://meteor.com) and **meteorite**. -Install dependent packages and then run `meteor`. That's it. +Install dependent packages with `mrt install` and then run `meteor`. That's it. +If you want to send emails (necessary to confirm users) you need to set the +`MAIL_URL` environment variable, or else the emails will be printed on stdout. + ### License The MIT License (MIT) diff --git a/client/client.coffee b/client/client.coffee index 4ed47ea..48c530b 100644 --- a/client/client.coffee +++ b/client/client.coffee @@ -33,11 +33,11 @@ Router.configure Router.map -> @route 'home', path: '/' + action: -> @render 'homepage', to: 'outside' onBeforeAction: -> # Dispatch user to the right landing page based on his account status if getUser() if amIValid() is yes then Router.go 'notes' else Router.go 'verifyEmail' - else Router.go 'login' @route 'login', onBeforeAction: -> Router.go 'home' if getUser() @route 'register', @@ -61,6 +61,7 @@ Router.map -> if err errCallback err; Router.go 'verifyEmail' else Router.go 'home' + @route 'homepage', action: -> @render '404' @route '404', path: '*' # You can't set a callback for when the user logs in using a cookie so... diff --git a/client/view/head.html b/client/view/head.html index d7c213e..9ab7299 100644 --- a/client/view/head.html +++ b/client/view/head.html @@ -2,4 +2,7 @@
This app is Free Software, under the MIT License
-Built by Enrico Fasoli as a prototype.
Not ready for daily usage yet!
Built by Enrico Fasoli
@@ -188,7 +195,42 @@ + + +A fast, free, organized way to manage your school tasks.
+ {{#if loggingIn}}{{> loading}} {{/if}} +