- Node.js: https://nodejs.org/
-
Clone the repository:
git clone https://github.com/vikramkadu/React-vite-redux-setup.git
Navigate to the project directory:
bash Copy code cd Install dependencies:
bash Copy code npm install Available Scripts In the project directory, you can run:
npm run dev Runs the app in development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
npm run build Builds the app for production to the dist folder. It correctly bundles React in production mode and optimizes the build for the best performance.
npm run serve Serves the production build from the dist folder. Open http://localhost:5000 to view it in the browser.
Tech Stack React: https://reactjs.org/
Vite: https://vitejs.dev/
Redux: https://redux.js.org/
SCSS: https://sass-lang.com/
Folder Structure
src
|-- components
|-- pages
|-- store
|-- assets
|-- routes
|-- constants
|-- helpers
|-- App.jsx
|-- index.jsx
Additional Configuration
Redux store configuration: src/store/index.js
SCSS styles: Modify styles in the src/styles directory.
Additional configurations can be done in the vite.config.js file. Contributing
Feel free to open issues and pull requests. Contributions are welcome!