Git Product home page Git Product logo

create-react-app-starter's Introduction

CRA starter for Typeless

Starter based on Create React App.

Deploy to Netlify

Quick Start

# install dependencies
yarn

# start in dev mode
yarn start

# create production build
yarn build

Features

  • User state management:
    • Login page.
    • Logout button.
    • Loading the initial user instance on the page load. Routing is ignored if the initial data is not loaded. Similar to onEnter functionality from old react-router.
  • Routing
    • Implemented with typeless-router
    • Dynamic configuration. RouteResolver scans all modules and loads all routes automatically.
    • Example RouteConfig. Some routes are only for the authenticated user, and some routes are only for the anonymous user. Feel free to extend this functionality depending on your needs.
  • Lazy modules
    • Features login, sample1, sample2 are dynamically loaded with React.lazy.
    • A loader is visible during lazy loading.
  • Example form.
    • Implemented with typeless-form

Scripts

yarn run start
Start in development mode.

yarn run build
Create a production build.

yarn run prettier
Auto-format code with prettier.

yarn run tsc
Check for TypeScript errors.

yarn run lint
Check for tslint errors.

Blueprints

Install plop npm i -g plop.

Following blueprints are available:

  • feature - create a blueprint for a new feature. Includes: interface, module, example component.

Licence

MIT

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.