JaysGitLab / cs5667-final-project-revdev

cs5667-final-project-revdev created by GitHub Classroom
MIT License
1 stars 0 forks source link

User routes and then some #23

Closed haietza closed 6 years ago

haietza commented 6 years ago

Resolves #2 , resolves #8, resolves #11, resolves #16, resolves #15, resolves #9, resolves #3.

I'm sorry for such a big pull request. I had to add the user routes before I could add the unit tests for the user controller, and I had to add some of the files from Benjamin's issues for the index views, routes, and controller so the user routes would work.

I also had to add the signin and signup views from issues #15 and #16. But, the tests are written and passing, and the application now runs with the EJS views on the home page, the signup page, the signin page and the signout page.

I also had to change the user model because passport needs a field called 'username' for it's local authentication strategy, so I'm having the form display "Email" but it is called username in all the backend code so passport will work.

I built this on top of the usercontroller branch, since this code was dependent on that as well.

Thanks!