https://github.com/khushal-ag/react-template-vitejs
A Minimal ⚛️ React Starter Template with Vite, TailwingCSS and JavaScript pre-configured with ESLint and Pettier.
https://github.com/khushal-ag/react-template-vitejs
eslint prettier react starter-template tailwindcss template vite
Last synced: 10 months ago
JSON representation
A Minimal ⚛️ React Starter Template with Vite, TailwingCSS and JavaScript pre-configured with ESLint and Pettier.
- Host: GitHub
- URL: https://github.com/khushal-ag/react-template-vitejs
- Owner: Khushal-ag
- License: mit
- Created: 2023-08-15T07:12:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-18T05:15:43.000Z (11 months ago)
- Last Synced: 2025-08-18T07:12:20.367Z (11 months ago)
- Topics: eslint, prettier, react, starter-template, tailwindcss, template, vite
- Language: JavaScript
- Homepage: https://react-template-vite-js.vercel.app
- Size: 368 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![views] ![stars] ![forks] ![issues] ![license] ![repo-size]
# React Starter Template w/ ViteJs
**A Minimal React Starter Template with Vite, TailwindCSS, and JavaScript pre-configured with ESLint and Prettier**
| **Template Preview** |
| -------------------- |
| ![mockup] |
## Features
- ⚡ **[Vite](https://vitejs.dev/)** - Lightning fast frontend tooling
- ⚛️ **[React 18](https://reactjs.org/)** - A JavaScript library for building user interfaces
- 🎨 **[TailwindCSS](https://tailwindcss.com/)** - A utility-first CSS framework for rapidly building custom designs
- 📦 **[react-router](https://reactrouter.com/)** - Declarative routing for React
- 📝 **[ESLint](https://eslint.org/)** - The pluggable linting utility for JavaScript and JSX
- ✨ **[Prettier](https://prettier.io/)** - An opinionated code formatter
- 📦 **[pnpm](https://pnpm.io/)** - Fast, disk space efficient package manager
## Getting Started
**Scaffold the project:**
```bash
pnpx degit Khushal-ag/react-template-viteJs
cd
```
**Install dependencies:**
```bash
pnpm i
```
**Initialize a new git repository _(Optional)_:**
```bash
git init
git add .
git commit -m "init"
```
## Available Scripts
In the project directory, you can run:
| **Script** | **Description** |
| ----------- | --------------------------------------------------------------- |
| `dev` | Runs the app in the development mode. |
| `build` | Builds the app for production to the `dist` folder. |
| `serve` | Serves the production build from the `dist` folder. |
| `preview` | Bundles and serves the production build from the `dist` folder. |
| `lint` | Runs ESLint with Prettier. |
| `fmt:check` | Checks if the code is formatted with Prettier. |
| `fmt:write` | Formats the code with Prettier. |
## After Installation Checklist
- [ ] Update `package.json` with your project details.
- [ ] Update `README.md` with your project details.
- [ ] Update `LICENSE` with your name and year.
- [ ] Update `index.html` to your liking.
- [ ] Clear `app.jsx` and write your own.
## Switching Package Manager
This template uses [pnpm](https://pnpm.io/) as the default package manager. If you want to use `npm` or `yarn`, you need to remove the `pnpm-lock.yaml` file and run `npm i` or `yarn` to generate the lock file for the respective package manager.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contributors
[![][contributors]][contributors-graph]
_Note: It may take up to 24h for the [contrib.rocks][contrib-rocks] plugin to update because it's refreshed once a day._
[views]: https://komarev.com/ghpvc/?username=react-template-viteJs&label=view%20counter&color=red&style=flat
[repo-size]: https://img.shields.io/github/repo-size/Khushal-ag/react-template-viteJs
[issues]: https://img.shields.io/github/issues-raw/Khushal-ag/react-template-viteJs
[license]: https://img.shields.io/github/license/Khushal-ag/react-template-viteJs
[forks]: https://img.shields.io/github/forks/Khushal-ag/react-template-viteJs?style=flat
[stars]: https://img.shields.io/github/stars/Khushal-ag/react-template-viteJs
[contributors]: https://contrib.rocks/image?repo=Khushal-ag/react-template-viteJs&max=500
[contributors-graph]: https://github.com/Khushal-ag/react-template-viteJs/graphs/contributors
[contrib-rocks]: https://contrib.rocks/preview?repo=Khushal-ag%2Freact-template-viteJs
[mockup]: https://graph.org/file/357248403fa780a226ece.png