Comment on page
Quick Start
Quick start your project using DashboardKit.
Navigate to your root folder
(i.e. dashboard-kit-react)
c:\>cd dashboard-kit-react
Install Packages by npm or yarn as per your preferences. Here we are using
yarn
package manager.c:\dashboard-kit-react> yarn
After package installation, you can start your app by using
yarn start
commandc:\dashboard-kit-react> yarn start
This will start your local server at
http://localhost:3000
Also, your terminal shows the following.Compiled successfully!
You can now view dashboard-kit-react in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.29.77:3000
Note that the development build is not optimized.
To create a production build, use yarn build.
Dashboard-Kit is very huge with many components, so it will take little time when you run it for first time. Please do not stop execution if it takes time on first launch.
This might be too early to deploy but it is always good to know how to deploy.
To build your app in production use
yarn build
commandc:\DashboardKit-material-react> yarn build
or
c:\DashboardKit-material-react> npm run build
Change the base URL with your domain and build your application.
You can control this with the
homepage
field in your package.json
package.json
"homepage" : "http://example.com"
To deploy it for subdirectory
i.e http://example.com/subdirectory/
package.json
"homepage" : "http://example.com/subdirectory/"
You also need to set base-name in
config.js
at '../src/config/'
config.js
basename: "/subdirectory";
You’ll need to have Node v12.x.x or later on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to easily switch Node versions between different projects.
Last modified 2yr ago