Giter VIP home page Giter VIP logo

usermanagementassignment's Introduction

Project README

Welcome to our project! Below you'll find instructions on how to set up and use this project, as well as an overview of its code structure.

Getting Started

To start this project, follow these steps:

  1. Navigate to Project Directory: If the project is not in the current folder, use the cd command to navigate to the project directory.

    cd "Your project"
  2. Install Dependencies: Install project dependencies using npm.

    npm install
  3. Run Development Server: Start the development server.

    npm run dev

Administrator Access

To access the administrator functionalities, navigate to the following URL in your web browser:

http://localhost:3000/administrator/login

You'll need to provide the credentials provided in the administratorLogin.txt file to log in. Once logged in, you can add or delete users associated with the tenant.

Code Structure

The project has the following code structure:

└── 📁src
    └── 📁app
        └── 📁auth
            └── 📁admin
                └── page.tsx
            └── 📁administrator
                └── 📁dashboard
                    └── page.tsx
                └── 📁deleteTenant
                    └── page.tsx
                └── 📁login
                    └── page.tsx
            └── 📁dashboard
                └── page.tsx
            └── 📁forgot-password
                └── page.tsx
            └── 📁login
                └── page.tsx
            └── 📁manager
                └── page.tsx
            └── 📁register
                └── page.tsx
            └── 📁reset-password
                └── 📁[email]
                    └── page.tsx
        └── 📁api
            └── 📁auth
                └── 📁administrator
                    └── 📁dashborad
                        └── route.ts
                    └── 📁login
                        └── route.ts
                └── 📁createRoles
                    └── route.ts
                └── 📁forgot-password
                    └── route.ts
                └── 📁login
                    └── route.ts
                └── 📁register
                    └── route.ts
                └── 📁reset-password
                    └── route.ts
                └── 📁[...nextauth]
                    └── options.ts
                    └── route.ts
        └── favicon.ico
        └── globals.css
        └── layout.tsx
        └── page.tsx
        └── 📁provider
            └── sessionProvider.tsx
    └── 📁components
        └── homeHere.tsx
        └── RemoveButton.tsx
        └── signoutButton.tsx
        └── Toast.tsx
    └── 📁config
        └── env.ts
        └── mail.ts
    └── 📁database
        └── mongo.config.ts
    └── 📁emails
        └── ForgotPasswordEmail.tsx
    └── middleware.ts
    └── 📁models
        └── User.ts
    └── types.ts
    └── 📁validator
        └── authValidationSchema.ts
        └── ErrorReporter.ts

This structure organizes the project into different directories based on their functionality, making it easier to navigate and maintain.

I had already put some of the data for the manager,admin etc of a particular organisation. To have a particular page to be protected for the user

usermanagementassignment's People

Contributors

coderev12 avatar

Stargazers

 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.