Setup User Management
Saves 14 hours of work

Everything for letting users manage their accounts

Prerequisites

  • GateUI Installed

If you haven't installed GateUI yet, follow the GateUI installation guide.

Installation

  1. Open your terminal
  2. Navigate to your project folder
  3. Run the following command:
js
npx @gateui/cli add user

This will copy all the user management code to your codebase. Continue below to see more in details what is added to the codebase.

How to use

All you need to do is use the UserProfile component in your page.

Example Profile Page

jsx
import { UserProfile } from "@/components/user";
jsx
jsx
export default function UserProfilePage() {
jsx
// --- RENDER ---
jsx
jsx
return (<div>
jsx
<h1>Welcome to MyApp</h1>
jsx
jsx
<UserProfile />
jsx
</div>)
jsx
}

What is installed

All the necessary code has been installed in the following places:

User Components and Functions
CategoryLocationDetails
Components@/components/user/Exports: UserProfile, UserProfileDetails, UserProfileSecurity
Lib@/lib/userExports: updateUser

Next Steps: Access Control (optional)

Learn how to install access control features such as restricting pages or using roles.

Access Control

Need Help?

If you encounter any issues, please open an issue on my GitHub repository. I'll respond as soon as possible.

Additional Resources