Skip to content

MKoushikYadav/SimpleAuth

Repository files navigation

SimpleAuth

Welcome to the repository for our MEBN(Bootstrap) website!


This project demonstrates a web application with the MEBN (MongoDB, Express.js, Bootstrap, Node.js) stack. The website includes various functionalities, and this readme provides an overview of the protocols and interactions involved.

Table of Contents

Introduction

The SimpleAuth website provides a user interface for administrators and regular users. It involves interactions using the GET and POST protocols, allowing for seamless navigation and data processing.

GET Protocols

/ (Root URL)

  • Redirects to /admin.

/admin

  • Admin interacts with the UI.
  • Logs in with admin credentials.
  • Successfully logs in.
  • Gets redirected to the /processAdminForm page.

/manageUsers

  • Admin interacts with the UI.
  • Creates a User and sends a request to the server.
  • Express Server processes and sends a request to MongoDB API.
  • MongoDB API accesses the database and sends back a response.
  • The express server processes the response and sends back a response with Pug as a rendering engine.

/user

  • User Enters login credentials
  • Redirects to /processUserForm

/userHome

  • View your details as a user.
  • Upload your picture. (Future Functionality).

POST Protocols

/ (Root)

  • Redirects to /admin.

/processAdminForm

  • Validates admin login form data from /admin and redirects to /manageUsers if authorized
  • Otherwise, it redirects to the /admin login again.

/processUserForm

  • Validates user login form data from /user and redirects to /userHome if authorized
  • Otherwise, it redirects to the /user login again.

About

A simple authorization webpage built with MongoDB, Express, Node and Bootstrap.

Resources

Stars

Watchers

Forks

Contributors