Built with Quasar
- Vue
- Quasar
- NPM / Yarn
- Quasar Cookies Plugin
- Quasar Notify Plugin
- Axios
- Vue Router
- VueX
- Firstly, you require a quasar application. Skip this step if the plugin is going to be installed on a pre-existing application. Else, create a new quasar application by writing the following command:
quasar create application-name --branch v1
- After creating the application. open
quasar.conf.js
file from the project folder and find the line withplugins: []
and add Cookies and Notify to it. It should look similar to:
plugins: ['Cookies', 'Notify']
- After that, the next step is to link the extension to the application. For linking, on the root of the extension folder and run the following command:
yarn link
Then, go to base application root folder and run the following command:
yarn link quasar-app-extension-rasello-user-management
- Next step is to invoke or install the plugin. To invoke the application, run the following command:
quasar ext invoke rasello-user-management
After running this command, you need to answer several prompts.
To unistall, you will need to uninvoke the extension by running the follwoing command:
quasar ext uninvoke rasello-user-management
Note: You need to redo these install steps and issue the uninvoke command each time you make changes to the uninstall script and you want to test them.
-
appName
Name of your app. It will be displayed on pages where you don't pass pageTitle props to the
AuthFormContainer component
. -
basURL
URL of the backend API Server. This baseURL will be attached before URL of every requests made to other routes asked in the prompts or to any requests made with the
$axios
global variable.Type:
String
Eg:
https://rasello.com/api
Default:
http://localhost:3000
-
loginRoute
Route for the user login API.
Type:
String
Default:
/auth/login
Eg:
/user/login
-
registerRoute
Route for the user registration API.
Type:
String
Default:
/auth/register
Eg:
/register
-
publicRegister
If you want to make the register page available to every user, type
Yes
else, typeNo
.Type:
Confirm
Accepted Values: Yes / No / y / n
-
logoutRoute
Route for the user logout API.
Type:
String
Default:
/auth/logout
Eg:
/logout
-
passwordChangeRoute
Route for the user logout API.
Type:
String
Default:
/auth/change-password
Eg:
/password-change
-
passwordForgotRoute
Route for the forgotten password reset request.
Type:
String
Default:
/auth/forgot-password
Eg:
/password-forgot
-
passwordResetRoute
Route for resetting password after email or phone verification.
Type:
String
Default:
/auth/reset-forgot-password
Eg:
/user/reset/password
-
fetchUserRoute
Route for fetching the data of logged in user with the JWT token sent on the request header.
Type:
String
Default:
/users/me
Eg:
/users/getLoggedInUser
-
userVerifyRoute
Route for user verification.
Type:
String
Default:
/users/verify
Eg:
/verify-user
-
logoURL
Route for the logo to be displayed on the Auth Form headers.
Type:
URL
Default:
https://www.rasello.com/images/rasellologo.png
Note: To make changes to the prompts, go to
quasar.extension.json
file from the root folder of your base application and findrasello-user-management
property and make changes to individual prompts as required.
- Login
/login
- Signup
/register
- Change Password
/change-password
- Forgot Password
/forgot-password
- Reset Password
/reset-password