Giter VIP home page Giter VIP logo

cra-template-accelerate's Introduction

cra-template-accelerate

This template is based on Create React App. It is designed to accelerate React application development by providing guidance, libraries and tools to encourage you to write web applications using best practices.

Features

  1. TypeScript based - for type safety
  2. Opinionated folder structure
  3. Foundational libraries
  4. Essential tools
  5. Some useful starter components:
    • ErrorBoundary: A component to catch JavaScript errors anywhere in its child component tree and display a fallback UI.
    • Loading: A placeholder loading component
    • EnvProvider: Provides a mechanism for loading environment variables dynamically by placing an environment file (env.js) in the /public folder. This allows a single build to be used across multiple environments such as develop, qa, uat & prod.
    • Home: A simple page showing end-to-end flow from client to server. It makes an HTTP request to the server, which is intercepted by Mock Service Worker (in development mode) and displays a list of movies. The unit test for this page does not have to do any jest level mocking, demonstrating the power of MSW.
    • NotFound: A placeholder NotFound page
    • Sample Storybook Stories: Showing best practices in Storybook
    • Unit Testing: Utility functions to make testing easier. Also, some sample tests to show best practices.
    • End-to-End Testing: Sample Cypress tests to show best practices.

Getting Started

To use this template, add --template accelerate when creating a new app.

For example:

npx create-react-app my-app --template accelerate

# or

yarn create react-app my-app --template accelerate

Once the new app is created, you must reinstall the dependencies to make sure that husky's git hooks are installed properly. Unfortunately the hooks do not get installed during the execution of the above commands.

To reinstall dependencies using npm, run the following commands:

cd my-app
rm package-lock.json node_modules
npm install

To reinstall dependencies using yarn, run the following commands:

cd my-app
rm yarn.lock node_modules
yarn

Learn More

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.