Reactql screenshot

Reactql

Author Avatar Theme by Leebenson
Updated: 31 Oct 2024
1814 Stars

Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR

Categories

Overview:

This product is a front-end React + GraphQL starter kit written in Typescript. It is a universal solution, meaning it can be used for both client-side and server-side rendering. The starter kit includes a variety of features such as a built-in web server, hot code reloading, real-time updates, code optimization, and support for CSS styles and modules. It is also compatible with popular frameworks like Foundation, Bootstrap, and Material UI.

Features:

  • Front-end stack: React v16.8, Apollo Client 2.5, MobX-React-Lite, Emotion CSS-in-JS, Sass, Less, PostCSS, React Router 4, GraphQL Code Generator.
  • Server-side rendering: Built-in Koa 2 web server, full route-aware SSR, universal building, per-request GraphQL store, MobX for flux/state management, full page React via built-in SSR component.
  • Real-time updates: Hot code reloading, development web server, WebSocket subscription query support.
  • Code optimization: Webpack v4 with tree shaking, asynchronous code loading, automatic per-vendor chunk splitting/hashing, Gzip/Brotli minification of static assets.
  • Styles: Emotion CSS-in-JS, PostCSS v7, SASS and LESS support, automatic vendor prefixing, CSS modules compatibility with popular frameworks.
  • Production-ready: Production bundling, static compression using Gzip and Brotli algorithms.

Installation:

To install this front-end React + GraphQL starter kit, follow these steps:

  1. Download or clone the repository.
  2. Open the terminal or command prompt and navigate to the project directory.
  3. Run the following command to install the dependencies:
npm install
  1. Once the installation is complete, run the following command to start the development server:
npm start
  1. Open your web browser and visit http://localhost:3000 to see the application running.

Summary:

This front-end React + GraphQL starter kit provides a comprehensive solution for building universal web applications. With features like server-side rendering, real-time updates, code optimization, and support for various styles and frameworks, developers can quickly start their projects and benefit from the latest web technologies. The installation process is straightforward, making it easy for developers to get started with this powerful starter kit.