Skip to content
/ react-template Public 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.

License

Notifications You must be signed in to change notification settings

ToniDarodda/react-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


React Template

React Redux i18next React Query Yarn License

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

Welcome Screen

Login Screen

Login Screen

Register 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:

    git clone [email protected]:ToniDarodda/react-template.git
    cd react-template
  2. Install dependencies:

    yarn install
  3. Configure environment variables:

    Update the .env file in the root directory with your configuration settings:

    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:

    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:

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

🛠️ 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.


About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published