Code Monkey home page Code Monkey logo

user-management-application's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Access the webpage for user-management-application here.

I made some dummy data to understand this. Here are some loginInfo for dummy logins: ( Note: You cannot change password or register with this data, because mails are not real, so one won't be able to successfully verify. )

admin:

manager:

user:

Understanding the Pages

  • LoginPage: It asks for Email, Password and Organization details for login. You can only login after registration and email verification.
  • RegisterPage: It asks for Full Name, Email, Password and Organization details for registering. You cannot register if you are verified with this email with this organization. You can register with same email but for another organization but again verifying your email.
  • ResetPage: It asks for Email and Organization details for password-reset. Will send a mail with a link for resetting the password.

After Successful Login

  • Dashboard: The user dashboard shows information about the current logged in user's Name, Email, Organization and Permission (which is given by role)
  • There are two buttons on the dashboard:
    1. Fetch Data: This button fetches the data of all members present in the database ( however, it somehow depends on the user role ).
    2. Log Out: Moves out of the session and sign out the user.

Understanding the Roles

  • Roles are of 3 types:
  • admin 2) manager 3) user (by default every new user added in database is given user role)
  • admin: I limit the admin to only be one user, who can maintain positions, roles and even delete any data from the database. This role has no scope of boundaries.
  • manager: This role is given to the head of a single organization ( like moderators, given to zero or many users ). The user can only fetch list of data from his organization.
  • user: This is the default role given to every new user, which can be changed by manager and admin.
  • Both user can fetch data of their organization, but admin has no limit of scope.

Deploy on Vercel

I used Vercel to deploy the Nextjs application. Check out our Next.js deployment documentation for more details.

user-management-application's People

Contributors

bot-deepak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.