Dashtic Setup
If you have already download and install node.js and React then ignore
prerequisites.
Prerequisites
Node.js
Download latest version of node.js from
nodejs.org.
Install Node.js using downloaded file.
To check your node version, run node -v in a terminal/console window (cmd)
React
To install the React using npm, open a terminal/console window and run the
following command.
npm install react
(or)
yarn install react
Setup an Dashtic Template by
- Download the Dashtic rar/zip file.
- Extract it and then go in to Folder here you will see a Dashtic Folders
- For Example
- Here, I'm Choosing vite-file.
- Now from a terminal window, navigate to the directory containing your
application
Dashtic/vite-file>
- You can import all dependency by installing npm command
npm install
(or)
yarn install
- Now you are in stage to successfully run sash using below command:
npm run dev
(or)
yarn run dev
Once you serve your application by default it will take their default port using
http://localhost:5173/
Note
npm install
If your are using npm install, You have to delete the
yarn-lock file
(or)
yarn install
If your are using yarn install, You have to delete the
package-lock.json file
basically npm i is used to install all dependencies or devDependencies from a package. if there will be any dependencies
which need to be installed but getting error message while installing, then --force will help to install those dependencies.
The --force argument will force npm to fetch remote resources even if a local copy exists on disk.
It will be on a last-dependency-downloaded-wins basis and will overwrite any previously downloaded dependencies.
npm install --force
if there is peer dependency issues while installing
it will always skip peer dependencies (whatever those are) during installation even if there are no issues.
npm install--legacy-peer-deps
we have to use only one file example: (for yarn yarn-lock) & (for npm package-lock.json) file
Build Application
Build your application for host on server using below command:
yarn run build
(or)
npm run build