Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

brightlayer-ui/react-cli-templates

 
 

Repository files navigation

This repo has been archived and moved here.

React CLI Templates

These are project templates that are used by Create React App when starting a new Brightlayer UI project. They are used behind the scenes by the Brightlayer UI CLI.

Available Templates

Blank

The Blank template provides a bare-bones application with Brightlayer UI components and themes automatically configured and ready to use.

Routing

The Routing template provides all of the essential Brightlayer UI configuration as well as additional configuration for using using React Router. It also adds a navigation Drawer to switch between several sample screens.

Authentication

The Authentication template includes everything from the Routing template and also installs and configures the Brightlayer UI react-auth-workflow package to automatically wrap the main application with functions and screens for Login, Registration, Change Password, etc.

placeholder landing page navigation drawer & routing login & registration screens
Blank
Routing
Authentication

Screenshots

Routing Template With Collapsed Drawer

Routing Template With Collapsed Drawer

Routing Template With Expanded Drawer

Routing Template With Expanded Drawer

Login Screen from Auth Template

Authentication Template Login

Usage

You can use these templates with the Brightlayer UI CLI (recommended):

npx -p @brightlayer-ui/cli blui new react --template=blank-typescript
npx -p @brightlayer-ui/cli blui new react --template=routing-typescript
npx -p @brightlayer-ui/cli blui new react --template=authentication-typescript

or with the Create React App CLI:

npx create-react-app app-name --template @brightlayer-ui/blank-typescript
npx create-react-app app-name --template @brightlayer-ui/routing-typescript
npx create-react-app app-name --template @brightlayer-ui/authentication-typescript

Testing Locally

If you would like to test these templates locally, you may do so by running the following command:

npx create-react-app myapp --template file:../path/to/template

For more information refer to the CRA documentation.

Browser Support

Brightlayer UI CLI Templates will work with any modern browser. For details refer to our Browser Support documentation.

About

This repo has moved. React project templates for use with Create React App

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.8%
  • HTML 6.6%
  • Other 0.6%