Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonidarodda/react-template
A React template with essential features for rapid development. Includes state management with Redux, data fetching with React Query, internationalization with i18next, and UI components using Chakra UI. Pre-configured with routing, Axios for API calls, and WebSocket support. Ideal for kickstarting React projects with a solid foundation.
https://github.com/tonidarodda/react-template
axios boilerplate chakra-ui data-fetching i18next internationalization navigation react react-query react-router redux state-management template typescript ui-components web-development websockets
Last synced: 2 days ago
JSON representation
A React template with essential features for rapid development. Includes state management with Redux, data fetching with React Query, internationalization with i18next, and UI components using Chakra UI. Pre-configured with routing, Axios for API calls, and WebSocket support. Ideal for kickstarting React projects with a solid foundation.
- Host: GitHub
- URL: https://github.com/tonidarodda/react-template
- Owner: ToniDarodda
- License: apache-2.0
- Created: 2024-08-14T14:35:29.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T21:54:27.000Z (3 months ago)
- Last Synced: 2024-10-11T18:13:42.643Z (about 1 month ago)
- Topics: axios, boilerplate, chakra-ui, data-fetching, i18next, internationalization, navigation, react, react-query, react-router, redux, state-management, template, typescript, ui-components, web-development, websockets
- Language: TypeScript
- Homepage:
- Size: 7.74 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
# React Template
![React](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB)
![Redux](https://img.shields.io/badge/Redux-764ABC?style=for-the-badge&logo=redux&logoColor=white)
![i18next](https://img.shields.io/badge/i18next-26A69A?style=for-the-badge&logo=i18next&logoColor=white)
![React Query](https://img.shields.io/badge/React%20Query-FF4154?style=for-the-badge&logo=react-query&logoColor=white)
![Yarn](https://img.shields.io/badge/Yarn-2C8EBB?style=for-the-badge&logo=yarn&logoColor=white)
![License](https://img.shields.io/badge/License-UNLICENSED-green?style=for-the-badge)This project is a React template designed to accelerate development by providing essential features such as state management, internationalization, data fetching, navigation, and UI components with Chakra UI.
## Screenshots
Created using the default components provided in the project.
### Welcome Screen
### Login Screen
### Register Screen
## Features
- **๐ Internationalization (i18n)**
- Multi-language support using `react-i18next` for seamless localization.- **๐๏ธ State Management with Redux**
- Centralized state management for efficient global state access and updates.- **๐ Data Fetching with React Query**
- Optimized data fetching, caching, and synchronization.- **๐งญ Navigation**
- Smooth and intuitive navigation using `react-router-dom`.- **โ๏ธ Component-Based Architecture**
- Modular design with reusable UI components and consistent styling using Chakra UI.- **๐ฆ Common Utilities**
- Helper functions and utilities for streamlined development.- **๐ Axios Management**
- Configurable API requests using Axios with built-in error handling and response management.- **๐ WebSocket Management**
- Real-time communication support using WebSockets.- **๐ช Cookie Management**
- Simplified management of cookies for authentication and user sessions.- **๐ Authentication**
- User authentication and registration with secure token management.## ๐ Getting Started
### Prerequisites
Ensure you have the following installed:
- Node.js (v14 or higher)
- Yarn
- A code editor (e.g., VSCode)### Installation
1. **Clone the repository:**
```sh
git clone [email protected]:ToniDarodda/react-template.git
cd react-template
```2. **Install dependencies:**
```sh
yarn install
```3. **Configure environment variables:**
Update the `.env` file in the root directory with your configuration settings:
```sh
REACT_APP_API_URL='https://your-api-url.com'
REACT_APP_SOCKET_URL='https://your-socket-url.com'
```### Running the Application
1. **Start the development server:**
```sh
yarn start
```2. **Open the application:**
The app will be available at `http://localhost:3000` in your web browser.
## ๐งช Testing
To run the tests, use the following command:
```sh
yarn test
```## ๐ ๏ธ Scripts
- **๐งน Format code using Prettier:** `yarn format`
- **๐โโ๏ธ Start the application:** `yarn start`
- **๐ Lint the code using ESLint:** `yarn lint`
- **๐งช Run the tests:** `yarn test`
- **๐ Run end-to-end tests:** `yarn test:e2e`## ๐ License
There is no license, you're free to use it.
## ๐ค Author
[Toni Da Rodda](mailto:[email protected])
## ๐ ๏ธ Icons
- **๐ Deployment**
- **โ๏ธ Configuration**
- **๐ Documentation**
- **๐ง Maintenance**
- **๐ Security**
- **๐ซ Email Integration**
- **๐ Performance Optimization**
- **โก Gain Time**---
Feel free to contribute to this project by submitting issues or pull requests.
For any questions or support, please contact [Toni Da Rodda](mailto:[email protected]).
---