Skip to content

akshaypx/react-toolpad-starter

Repository files navigation

React Toolpad Starter

This repository serves as a template for creating a dashboard application using React.js and MUI Toolpad. It leverages Vite for build tooling and TypeScript for type safety.

Features

  • React 18: Utilizes the latest features of React.
  • TypeScript: Ensures type safety throughout the application.
  • Vite: Provides fast build times and a lean development experience.
  • MUI Toolpad: Integrates MUI's Toolpad Core components for building internal tools and dashboards. citeturn0search0

Getting Started

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/akshaypx/react-toolpad-starter.git
  2. Navigate to the project directory:

    cd react-toolpad-starter
  3. Install dependencies:

    Using npm:

    npm install

    Or using Yarn:

    yarn install

Running the Development Server

To start the development server:

Using npm:

npm run dev

Or using Yarn:

yarn dev

The application will be running at http://localhost:3000 by default.

Using this Starter Template

To start a new project based on this template without copying the original Git history, you can use degit:

npx degit akshaypx/react-toolpad-starter my-new-app
cd my-new-app
git init
git remote add origin https://github.com/your-username/my-new-app.git
git add .
git commit -m "Initial commit from react-toolpad-starter"
git push -u origin main

This clones the code into a fresh folder, initializes your own Git repo, and sets it up to push to your GitHub.

Project Structure

  • src/: Contains the source code of the application.
    • main.tsx: Entry point of the application.
    • App.tsx: Main application component.
  • public/: Contains static assets.
  • index.html: Main HTML file.

Integrating MUI Toolpad Components

This template is set up to utilize MUI Toolpad Core components, which offer a suite of React components designed for building internal tools and dashboards. For detailed documentation on using these components, refer to the Toolpad Core documentation.

Available Scripts

  • npm run dev or yarn dev: Starts the development server.
  • npm run build or yarn build: Builds the application for production.
  • npm run lint or yarn lint: Runs ESLint to analyze code for potential errors.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License.

About

A template for creating Dashboard apps using React.js and MUI Toolpad.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published