This template provides a minimal setup to get React working in Vite with Hot Module Replacement (HMR) and some ESLint rules.
Currently, two official plugins are available:
@vitejs/plugin-react
uses Babel for Fast Refresh@vitejs/plugin-react-swc
uses SWC for Fast Refresh
To get started with this template, follow these steps:
- Clone the repository:
git clone https://github.com/your-repo/react-vite-template cd react-vite-template
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Navigate to http://localhost:3000/ to see your application running. The application will automatically reload if you change any source files.
Run the following command to generate a new component:
ng generate component component-name
You can also use:
ng generate directive
ng generate pipe
ng generate service
ng generate class
ng generate guard
ng generate interface
ng generate enum
ng generate module
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI, use ng help or check out the Angular CLI Overview and Command Reference page.
Happy coding! 🎉 If you have any questions or run into issues, feel free to reach out. 🚀✨