User Management (ReactJs)
Simple Install
- clone project
- run
npm i [path/to/project/directory]
- then for update run
git pull
in user management directory then runnpm update
in your project directory
Install
- add
rsa
key by this Commmand:ssh-keygen -t rsa -C "your.email@example.com" -b 4096
- copy content of
~/.ssh/id_rsa.pub
. - go to http://gitlab.peykasa.ir/profile/keys and add a new ssh key using copied rsa.
- edit
~/.ssh/config
and add fallowing lines:
# Private GitLab server
Host gitlab.peykasa.ir
IdentityFile ~/.ssh/id_rsa
- now install
react.user.manage
Component by fallowing command:
npm i git+ssh://git@gitlab.peykasa.ir/hamid.sarani/react-comp.user-manage --save
Usage
- add route by
exact: false
option. - import
react.user.manage
component to your file:import ManageUsers from 'react.user.manage';
- now call component:
<ManageUsers route={{your user management route}} url={{url of your user management api}}/>