Kickstart your web development projects with this ready-to-use template that leverages the latest and greatest technologies.
- React for building modern user interfaces.
- TypeScript for safer and more maintainable development.
- Vite as the lightning-fast development environment.
- Vitest for unit testing with Vite.
- Tailwind CSS for fast and customizable styling.
- Husky with precommit hooks to ensure code quality.
- Absolute imports
import Test from '@/components/test'
configured for better code organization.
Make sure you have Node.js and Yarn installed on your system before getting started.
- Clone this repository:
npx degit lucerojulian/react-vite-template#master projectName
. - Navigate to the project directory:
cd projectName
. - Install the dependencies:
yarn
. - Start building your app!
- Run the Vite development server:
yarn dev
. - Run unit tests:
yarn test
. - Generate a production build:
yarn build
.
/.husky
/public
/src
/__tests__
/assets
/components
/hooks
/pages
/router
/test
/utilities
App.tsx
main.tsx
index.html
package.json
README.md
tailwind.config.js
tsconfig.json
vite.config.ts
Adjust the directory structure to fit the needs of your project.
Contributions are welcome! If you find any issues or want to improve this template, feel free to create a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.