Skip to content

OnlyMembers is a simple, user-friendly, responsive session-based authentication demo application. After users create their accounts, they can leave messages on the message board. An unauthenticated person cannot see who posted the message and when it was posted.

Notifications You must be signed in to change notification settings

uguryilmazdev/onlyMembers

Repository files navigation

OnlyMembers

DESCRIPTION

OnlyMembers is a simple, user-friendly, responsive session-based authentication demo application. After users create their accounts, they can leave messages on the message board. An unauthenticated person cannot see who posted the message and when it was posted.

PS: Don't get excited, it has nothing to do with OnlyFans :)

BUILT WITH

  • Node.js
  • Express.js
  • passport.js
  • bcrypt
  • MongoDB Atlas
  • Boostrap

GETTING STARTED

  1. Clone the repository.
  2. Install dependencies npm install
  3. Create a .env file in the root directory.
  4. Add following variables: MONGODBURI SECRET SESSION_COLLECTION_NAME
  5. Paste your MongoDB string "mongodb+srv://<user>:<password>@cluster0.xxxxxxx.mongodb.net/<dbname>?retryWrites=true&w=majority"
  6. Choose secret key SECRET for session secret.
  7. Choose a collection name for your sessions in database.
  8. Start the server npm run devstart
  9. Access the application using http://localhost:3000

SCREENSHOTS

Main page for unauthenticated person main-unauth

Main page for authenticated person main-auth

Eight messages are displayed on each page (You can change it if you want). You can use the pagebar to navigate. pagebar

You can view your own messages by using the "Your Messages" button, and you can view other users' messages by clicking on their usernames below the messages. your-messages

You can write a message by using the "New Message" button. create

About

OnlyMembers is a simple, user-friendly, responsive session-based authentication demo application. After users create their accounts, they can leave messages on the message board. An unauthenticated person cannot see who posted the message and when it was posted.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published