All Projects → patternfly → Patternfly React Demo App

patternfly / Patternfly React Demo App

Licence: apache-2.0
DEPRECATED: This project is no longer active. See https://github.com/patternfly/patternfly-react-seed for PF4 demos.

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to Patternfly React Demo App

Todo Redux Saga
Todo app with Create-React-App • React-Redux • Redux-Saga • Firebase • OAuth
Stars: ✭ 184 (+607.69%)
Mutual labels:  create-react-app, react-router, redux-saga
egghead-bookshelf
An example React application to accompany the "Add Internationalization (i18n) to a React app using React Intl" Egghead.io course
Stars: ✭ 28 (+7.69%)
Mutual labels:  react-router, create-react-app
Fakeflix
Not the usual clone that you can find on the web.
Stars: ✭ 4,429 (+16934.62%)
Mutual labels:  react-router, redux-saga
React Social Network
Simple React Social Network
Stars: ✭ 409 (+1473.08%)
Mutual labels:  create-react-app, redux-saga
auth-with-saga-example
code for https://medium.com/@stepankuzmin/authentication-with-react-router-redux-5-x-and-redux-saga-55da66b54be7
Stars: ✭ 14 (-46.15%)
Mutual labels:  react-router, redux-saga
timeoff-server
TimeOff is an application that allows companies' employees to set vacations before they begin taking their time off. Implemented in modern tech stack i.e. Node, Express, MongoDB.
Stars: ✭ 33 (+26.92%)
Mutual labels:  react-router, redux-saga
Serverless Stack Com
An open source guide for building and deploying full-stack apps using Serverless and React on AWS.
Stars: ✭ 3,617 (+13811.54%)
Mutual labels:  create-react-app, react-router
coincharts
Cryptocurrency Price Chart (GDAX)
Stars: ✭ 75 (+188.46%)
Mutual labels:  redux-saga, create-react-app
React Redux Saga Boilerplate
Starter kit with react-router, react-helmet, redux, redux-saga and styled-components
Stars: ✭ 535 (+1957.69%)
Mutual labels:  react-router, redux-saga
React Study
渐进式学习React生态圈
Stars: ✭ 548 (+2007.69%)
Mutual labels:  react-router, redux-saga
Redux Webpack Es6 Boilerplate
A starter project for modern React apps with Redux
Stars: ✭ 566 (+2076.92%)
Mutual labels:  sass, react-router
coconat
🍥 StarterKit Builder for rocket-speed App creation on 🚀 React 17 + 📙 Redux 4 + 🚠 Router 5 + 📪 Webpack 5 + 🎳 Babel 7 + 📜 TypeScript 4 + 🚔 Linters 23 + 🔥 HMR 3
Stars: ✭ 95 (+265.38%)
Mutual labels:  react-router, redux-saga
elegant-react-ssr
Server-side rendering with create-react-app, React Router v4, Helmet, Redux, and Thunk boilerplate, without ejecting CRA
Stars: ✭ 16 (-38.46%)
Mutual labels:  react-router, create-react-app
chatty
A React single-page-application alternative client for the shacknews chatty.
Stars: ✭ 27 (+3.85%)
Mutual labels:  react-router, create-react-app
molecule
⚛️ –  – ⚛️ Boilerplate for cross platform web/native react apps with electron.
Stars: ✭ 95 (+265.38%)
Mutual labels:  react-router, redux-saga
create-react-redux-app
React boilerplate based on create-react-app
Stars: ✭ 49 (+88.46%)
Mutual labels:  redux-saga, create-react-app
Soundcloud Redux
SoundCloud API client with React • Redux • Redux-Saga
Stars: ✭ 681 (+2519.23%)
Mutual labels:  react-router, redux-saga
react-phoenix-users-boilerplate
Elixir/Phoenix + React + users template/boilerplate.
Stars: ✭ 71 (+173.08%)
Mutual labels:  react-router, redux-saga
crassa
Create React App Server Side Application
Stars: ✭ 16 (-38.46%)
Mutual labels:  redux-saga, create-react-app
Youtube React
A Youtube clone built in React, Redux, Redux-saga
Stars: ✭ 421 (+1519.23%)
Mutual labels:  create-react-app, redux-saga

DEPRECATED

This project is no longer active and was used for PF3 implementations. Please see patternfly-react-seed for PF4 demos.

patternfly-react-demo-app

The PatternFly React demo app serves as a demo for building your production app with Patternfly, PatternFly React, Redux, and React Router.

Running demo: https://patternfly-react-demo-app.firebaseapp.com/#/

This project was bootstrapped with Create React App.

The most recent version of the create-react-app guide can be found here for further customizations to this boilerplate.

Quick Setup

Note If you do not have yarn installed run: npm install -g yarn

Run the following commands:

yarn install
yarn build
yarn start:dev

Note: yarn start is used only to override the production s2i (by default, the bucharest-gold OpenShift Builder image will serve the build directory).

Deployment

You can deploy the app to Open Shift using the following commands:

oc new-project patternfly-react
find . | grep openshiftio | grep application | xargs -n 1 oc apply -f
oc new-app --template demo-app -p SOURCE_REPOSITORY_URL=https://github.com/patternfly/patternfly-react-demo-app

You can also create a Docker image using the following:

yarn docker:build

Folder Structure

This project has the following structure:

.
├── /build/                     # Compiled build output
│   ├── /static/                # Compressed static assets (css,js,img)
│   ├── /index.html             # Compressed index.html
├── /node_modules/              # 3rd-party libraries and utilities
├── /public/                    # Static files such as favicon.ico etc.
│   ├── /index.html             # Customizable index.html
│   ├── favicon.ico             # Application icon to be displayed in bookmarks
├── /src/                       # Core application source
│   ├── /components/            # Shared React UI components
│   ├── /fonts/                 # Fonts to be included in Webpack bundle
│   ├── /img/                   # Images to be included in Webpack bundle
│   ├── /pages/                 # Reusable page templates used in various routes
│   ├── /App.scss               # Application SCSS
│   ├── /App.test.js            # Application tests written in Jest
│   ├── /App.js                 # Application UI Component
│   ├── /index.js               # Main React container entry
│   ├── /logo.svg               # Application logo
│   ├── /registerServiceWorker  # sw-precache-webpack-plugin
│   ├── /routes.js              # React Router application routes
│── package.json                # The list of project dependencies and NPM scripts
│── yarn.lock                   # Yarn package lock file

Styling w/ Sass and Patternfly

PatternFly Sass was added via the Create React App Preprocessor Guide. All Patternfly build assets are copied to src so that they may be included in the default create-react-app build. The App.scss file will include all PatternFly Sass along with PatternFly React Sass extensions. Once Sass compiles, the resulting CSS can be found in src/App.css.

Note Only static assets which are import'ed into your application will be included in your resulting build output. I.e. import './App.css'; will ensure App.css is included.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Prettier for VSCode

If you are using Visual Studio Code as your code editor of choice, there is a package extension that will allow you to format your JavaScript/TypeScript/CSS using Prettier.

Prettier VSCode Installation

You can install the prettier extension by searching for Prettier - Code formatter

Visual Studio Code Market Place: Prettier - Code formatter

Upon installation you can begin using prettier through the command palette:

1. CMD + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD + Shift + P -> Format Selection

Note If you don't like the defaults, you can rebind editor.action.formatDocument and editor.action.formatSelection in the keyboard shortcuts menu of vscode.**

More information on prettier for vscode can be found here: https://github.com/prettier/prettier-vscode

Other Demos

We have some other demos of PatternFly React in the following branches. These provide some other examples of how to use PatternFly React in your application.

  • RCUE Product Demo - this is an RCUE variation of the PF React Demo App which can be used as a jumpstart boiler for building RCUE based products.
  • Redux Saga - using Redux Saga and adding a login page in the PatternFly React Demo app boilerplate
  • Typescript - using Typescript with the PatternFly React Demo app boilerplate
  • Flow JS - using Flow JS with the PatternFly React Demo app boilerplate

Do you have a question?

There are a few things that can be done to resolve any questions or problems you might have.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].