Welcome to the Ecommerce Analytics Dashboard! This guide will walk you through the steps required to set up the project on your local machine, whether you're aiming for development or production environments. By following the instructions below, you'll have the dashboard up and running in no time.
Prerequisites :-
Before starting, ensure that you have the following tools and software installed on your computer:
Node.js is a JavaScript runtime that will allow you to run the project locally. The LTS (Long-Term Support) version is recommended to ensure stability and compatibility with most libraries.
Download Node.jsnpm (Node Package Manager) comes bundled with Node.js, and you can use it to install project dependencies.
Alternatively, Yarn is a faster and more reliable package manager. You can choose either based on your preference.
Install YarnA code editor helps you view, edit, and debug your project. Visual Studio Code (VS Code) is a popular and free choice
VS Code.Installation Instructions
1. Extract the Project
Download the project ZIP file.
Extract the contents to a folder on your machine.
Open this folder in your preferred code editor (e.g., VS Code)
2. Navigate to the Project Directory
Open a terminal (command prompt or terminal in VS Code) and navigate to the folder where the project was extracted.
cd [project-name]
Replace [project-name] with the actual folder name where your project is located.
3. Install Dependencies
The project uses several libraries and packages to function properly. These dependencies need to be installed before you can run the application.
Using npm:
Run the following command to install the required dependencies:
npm install
or using Yarn:
If you're using Yarn, you can install the dependencies with:
yarn install
This will download all necessary packages, such as React, TailwindCSS, and others, and save them to the node_modules folder.
Running the Project
1. Start the Development Server
Once all dependencies are installed, you can run the application locally for development. This will start a development server that automatically reloads the application as you make changes to the code.
Using npm:
npm run dev
Or using Yarn:
yarn run dev
After executing this command, the development server should start, and you can view the project by navigating to http://localhost:5173 in your web browser.
2. Build for Production
If you want to prepare the application for production (optimized and minified), use the following build commands. This will bundle the app and prepare it for deployment.
Using npm:
npm run build
Or using Yarn:
yarn build
This will generate a build folder containing the production-ready version of your app. The build process will optimize the application for faster load times and better performance.
Additional Notes
npm run preview
Libraries in Use
This project makes use of several powerful libraries to add various features and improve functionality: