Now using requirejs. YAY
Configured Grunt to compile less
Integrated express
Fixed issue where routes were not firing when refreshing on that route. Moved initializing the app router to after loading the modules so that the module routers have a change to kick in.
Added login and register views
Moved the account controller and router back into the module for now to keep it simple. Fixed issue where the account router was not being loaded at the right time on page refresh
Started working on authentication
Using the ui prop for button
Login request now working. Need to do authorisation etc.
Tweaks
Setup mongodb and added express-validation for... well validation. Also done some work on the register function although this needs work
Registration now working
Registration is now complete with validation, username and email uniquness checks.
Swapped bcrypt for bcryptjs. Login and registration now working
Added the user to the session and load it into window on page load
Using redis for session storage. Logged in users will now be redirected to the home page if they try to navigate to the login or registrationn pages. On successful login, the User object is stored in window and the user is redirected to the home page
Minor tweaks
Added Auth and Vent modules
Separated out the header view from the layout module. Implemented logout
Combined the Account and Auth modules into one Auth module. Moved events out of modules and into the Vent object. All events will go through Vent and will be namespaced