Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

jennjwang/launch-project

Repository files navigation

launch-project

structural organization

controllers

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

middleWare

authMiddleware - checks for credentials and verifies them

models

post - data model for Post

user - data model for User

routes

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

views

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

to run code:

  1. cd into root directory
  2. npm or yarn install all packages
  3. create .env in root directory and paste the secret key mentioned in project handin
  4. run "nodemon" and open localhost:3000 in browser

Known bugs

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.

code contribution

Aubrey: log in, sign up, and posts

Jennifer: sign up and profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •