authController - handles requests from authRoutes and creates the appropriate view with user data
postController - handles requests from postRoute and renders the appropriate view in activities
authMiddleware - checks for credentials and verifies them
post - data model for Post
user - data model for User
authRoutes - forwards requests for log in/log out and sign up to corresponding controller
postRoute - forwards requests for displaying and creating posts to corresponding controller
activities
- activities - template that renders all the posts
- post - template for the form to create a post
- show - template that renders the details of a post
partials
- footer - template for the website footer
- header - template for the website header
pages
- 404 - template for the error page
- home - template for the landing/home page
- login - template for the login page
- profile - template for the user profile page
- signup - template for the sign up page
- cd into root directory
- npm or yarn install all packages
- create .env in root directory and paste the secret key mentioned in project handin
- run "nodemon" and open localhost:3000 in browser
We currently do not have know bugs, but we are hoping to add more features to the website in the future including email verification, connecting users in profile, edit posts, comment and reply to posts, embed calendar, etc.
Aubrey: log in, sign up, and posts
Jennifer: sign up and profile