Topic: React Admin Dashboard Installation
cokicoki free asked 5 years ago
I will like to ask how to install React Admin Dashboard? Is it the same as we install MDB React Pro or not? Should I have the access token also to install it?
I ask this because at the 5 min Quick Start tutorial doesn't mention React Admin Dashboard.
Kindly please advised! Thank you.
Jakub Chmura staff answered 4 years ago
Hi @mark-steven-au,
When you install correctly an admin package
to your project, you don't need to move all folders and files. You can use code from these sites that you need and paste it to your project.
If you don't move any folder from the original admin package and the problem still exists then you probably didn't install the admin dashboard
correctly. Then you need to remove your node-modules
folder and package-lock.json
/yarn.lock
file and after that install all dependency again.
Please tell me if my advice has fixed this problem.
Best, Kuba
mark-steven-au premium answered 4 years ago
Gave it a go anyway. Kept all files in their original place src/components/pages/ and instead rewrote Routes.js to reflect that. ALmost got it going and then I got this error. Seems PageCreator.js is looking for a module called draft.js that does not exist anywhere.
Any ideaas?
Jakub Chmura staff answered 5 years ago
hi @cokicoki
I try to show you step by step what you need to do.
If you want to use our React Pro and admin dashboard and plugins you don't need to install react pro pack as first.
If you unzip react admin dashboard pack, you will see the newest mdbreact 4.21.0
version inside. Just open an unzipped folder with package.json file, run console and type npm install
to install dependencies. The react package will be installed with admin, you don't need to install it separately.
After installation Admin Dashboard Pack and React Pro Pack you can use both in your project.
The most important thing is when you want to add some of our plugins to your project you need to follow my previous instructions. I try to write it once again and try to explain it in another word.
- Download plugins from our website.
- Unzip this plugin to the new folder.
- Open plugin's
package.json
. - Open package.json file from your project folder.
- Copy dependency from plugins
package.json
( remember to copy only those dependency that does not repeat in your main project package.json.) - After copy all dependencies from all the plugins you want to install copy
.tgz
files to the main project folder (the folder where you keep package.json file) for examplemdb-plugin-name-123.tgz file
. - And finally, if you copy all dependencies and copy all
.tgz
files open your console and typenpm install
command.
If everything goes fine with the installation process you can use plugins or admin pack in your project. To do this you need to import these file into your app.js
. For example:
import WYSIWYG from "mdb-react-wysiwyg"
I hope that my answer will help.
Best regards,
Kuba
mark-steven-au premium commented 4 years ago
Hi Kuba,I have followed your steps but think I might need a few more before I want to risk breaking my original project. I successfully added the dependancies to json file to copy of original project after first downloading the admin pro to a new folder and opening the json file to get dependancies. I then ran npm install and the system installed 1 package and audited a few others. So far so good.
So what you are saying is all the other files and folders in the download folder /src, /public /components folder with many folders and files in it need to then be moved across to my existing folders. And if so where? Currently all the Admin pages if copied across as is are situated in src/components/pages. Yet in the App.js they are linked under to only /pages/login etc. So should they remain in src/components/pages or be moved to src/pages where all the other existing pages are already and where the links in Admin App.js point? Most of these new additions on App.js appear to be routes so would they not go into Routes.js instead?
cokicoki free answered 5 years ago
Hi Jakub,
Would you advise me step by step, what should I do? My intention is I want to make an admin website. So I choose MDB Admin Pro. But I am also want to use some of the features in the MDB React Pro and The Plugins. What correct steps should I follow? Thank you so much for your assistance.
cokicoki free answered 5 years ago
Hi Jakub,
When I want to use React Admin Pro or the plugins, should I install MDB React Pro first as pre-requisite with its access token or no need to do that?
I am sorry, I am still confused and don't know what to do. Kindly please advised!
Thank you very much.
cokicoki free answered 5 years ago
Hi Jakub,
Thanks for your response.
I am sorry If am still confused.
In fact, I want to make a website with React Admin Pro. This is my intention.So my procedure is the following step by step:
First, I install MDB React Pro + plus with its access token, then I run NPM install. And when I succeeded the first installation.
Then, the second step is I bring the admin pack and plugin to my project folder and copy all those files into my project folder. And then I copy all of the dependencies again into my MDB React Pro package.json, and then do NPM install again.
I don't know if my understanding above is correct or not.
Would you give more explanation whether it is correct or not? Thank you.
Jakub Chmura staff answered 5 years ago
Hi @cokicoki
You can install plugins and admin pack only from our website. I write the instruction below:
Download the plugin or admin pack from our website.
Unzip
package.json
andmdb-plugin-name-123.tgz file
.Paste
mdb-plugin-name-123.tgz
file into your project folder.Open package.json file in your code editor and copy plugin or admin dependency ( Example from WYSIWYG plugin:
"mdb-react-wysiwyg": "file:mdb-react-wysiwyg-4.16.0.tgz"
) and paste it to package.json file from your project
If you copy every *.tzg file to your project folder and copy all dependency you need. You can install dependency by npm install
or yarn
command.
If everything goes fine with the installation process you can use plugins or admin pack in your project. To do this you need to import these file into your app.js. For example:
- import WYSIWYG from "mdb-react-wysiwyg".
I hope that you understand my instruction and the installation process goes well. If you need help feel free to ask me a question.
Best Regards, Kuba
cokicoki free answered 5 years ago
Hi,
Please also advised how to install/activate the plugins below! Should I use npm install? Should I need access token? What should I do with them?
Thank you for your assisstance.
MDB-React-WYSIWYG MDB-React-Calendar MDB-React-Color-Picker MDB-React-FileUpload MDB-React-Filter MDB-React-Sortable MDB-React-Table-Editor
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.21.0
- Device: desktop
- Browser: firefox
- OS: windows 7
- Provided sample code: No
- Provided link: No