Skip to content

An exclusive clubhouse where members can write anonymous posts. Users can sign up, become an exclusive member, write messages, and become an admin were they can delete messages. Purpose of this project was to practice user authentication with Passport.js

Notifications You must be signed in to change notification settings

alecnissen/members-only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About This Project

This project was designed to practice user authentication and implement logic that grants different access levels to various members. It provided valuable experience in user authentication using Passport.js. Built with MongoDB, Express.js, Node.js, JavaScript, and EJS.

What I learned

  • User authentication with Passport.js
  • Using the MVC pattern to structure the website and separate code
  • Practice with Express.js middleware to handle requests and asynchronous operations
  • Form validation and sanitization
  • Properly storing data using a MongoDB database
  • Passing data from the backend to the frontend
  • Using EJS and views to render data and conditionally display content based on membership status or admin privileges
  • Build With

    MongoDB Express.js NodeJS JavaScript HTML5 CSS3

    Getting Started

    To get project cloned locally: git clone git@github.com:alecnissen/members-only.git

    then npm install which will install all dependency's and packages.

    Features

    • All messages are displayed on the home page for the user to see.
    • Users can login and forms also include validation checks to make sure credentials are valid. It will display incorrect password or email.
    • Welcome page if user authentication is successful using conditional rendering within EJS view.
    • Users can become a member by answering a question. If successful they will be able to see the author and date of the messages.
    • Users Can make posts.
    • When users sign up they can choose to become an admin.
    • If the user is an admin they will have the ability to see all the contents of the messages including title, text, author, date as well as the ability to delete messages.

    Acknowledgments

    Thank you to everyone within The Odin Project Curriculum from the bottom of my heart! Thank you to anyone who helped me in the discord channels. I promise to help others throughout this journey.

    Contact

    Creator: Alec J Nissen
    E-Mail: alecnissen@yahoo.com
    GitHub: https://github.com/alecnissen/members-only

About

An exclusive clubhouse where members can write anonymous posts. Users can sign up, become an exclusive member, write messages, and become an admin were they can delete messages. Purpose of this project was to practice user authentication with Passport.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published