ShopPoint Dashboard UI is developed with:
First of all, you have to install the dependencies using npm or yarn.
List of available scripts:
This Dashboard Template is developed using Vite. You can find more information about Vite here.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts:
- A dev server that serves your source files over native ES modules with rich built-in features and astonishingly fast Hot Module Replacement (HMR).
- A build command that bundles your code with Rollup, pre-configured to output highly optimized static assets for production.
start
Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.\ You may also see any lint errors in the console.
build
Builds the app for production to the build
folder.\ It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
You can customize the build process using the vite.config.js
file.
serve
Serves the production build from the build
folder locally.
How to customize icon font
You can import selection.json located in src/fonts/icomoon
back to the IcoMoon app using the Import Icons button (or via Main Menu → Manage Projects) to retrieve icon selection.
How to use environment variables
All environment variables should be prefixed with VITE_
in order to be accessible in the app.
You can use environment variables in your app by prefixing them with import.meta.env.VITE_
:
const API_KEY = import.meta.env.VITE_API_KEY
This dashboard template uses environment variables to store the API keys and other sensitive data used for Google Maps, Google Analytics and social media login functionality.
.env.local example:
VITE_FB_APP_ID=<your_facebook_app_id> VITE_GOOGLE_APP_ID=<your_google_app_id> VITE_MAP_KEY=<your_google_maps_key> VITE_GA=<your_google_analytics_key>
File structure
. ├── public # static files │ ├── favicon.ico │ ├── robots.txt ├── src # source files │ ├── assets # static assets │ ├── components # reusable components shared across the app │ ├── constants │ ├── contexts # context providers │ ├── db # fake database │ ├── fonts │ ├── hooks # custom hooks │ ├── pages │ ├── styles # global styles │ ├── ui # reusable UI components │ ├── utils # helper functions │ ├── widgets # reusable widgets │ ├── App.jsx # main app component │ ├── index.jsx # app entry point ├── .eslintrc # eslint config ├── .htaccess # htaccess file for Apache server ├── index.html # main html file ├── jsconfig.json # jsconfig for IDE ├── package.json ├── postcss.config.js # postcss config for tailwind ├── tailwind.config.js # tailwind config where you can add additional colors, fonts, etc. ├── vite.config.js
Third-party libraries
- Material UI
- Ant Design
- styled-components
- Swiper
- Tailwind CSS
- Leaflet
- React-Dropzone
- React-CSV (CSV data export)
- React-Countup
- React-Spring (animations)
- React-select
- Recharts
- React-toastify (toast notifications)
- React-headroom