This template provides a minimal setup to get React working in Vite with 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
git clone https://github.com/your-username/your-project.git
cd your-project
This project supports two official plugins: @vitejs/plugin-react and @vitejs/plugin-react-swc.
Choose one of the following options to install the desired plugin:
npm install
npm install --legacy-peer-deps
Note: --legacy-peer-deps
is required for now due to compatibility issues.
if nodeJS not installed you can visit the official site of nodeJS and download the latest version
npm install -g nodemon # Install nodemon globally if not already installed
nodemon server.js
The backend server will be running at http://localhost:5000.
npm run dev
The frontend development server will be running at http://localhost:5173.
Open your browser and navigate to http://localhost:5173 to see your React application in action.
Feel free to contribute to this project by creating issues or pull requests.
Happy coding!