-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- ![Logo](https://raw.githubusercontent.com/react-boilerplate/react-boilerplate-brand/master/assets/banner-metal-optimized.jpg ':size=100%') --> | ||
|
||
# React Boilerplate Documentation <small>5.0</small> | ||
|
||
> A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices | ||
[Get Started](#main) | ||
[Website](https://www.reactboilerplate.com/) | ||
[GitHub](https://github.com/react-boilerplate/react-boilerplate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Documentation | ||
|
||
## Overview | ||
|
||
### Quickstart | ||
|
||
1. First, let's kick the tyres by launching the sample _Repospective_ app | ||
bundled with this project to demo some of its best features: | ||
|
||
```Shell | ||
npm run setup && npm start | ||
``` | ||
|
||
1. Open [localhost:3000](http://localhost:3000) to see it in action. | ||
|
||
- Add a Github username to see Redux and Redux Sagas in action: effortless | ||
async state updates and side effects are now yours :) | ||
- Edit the file at `./app/components/Header/index.js` so that the text of | ||
the `<Button>` component reads "Features!!!"... [Hot Module Reloading](https://webpack.js.org/guides/hot-module-replacement/) gives | ||
you a feedback loop with your UI so smooth it's almost conversational! | ||
- Click your (newly emphatic) Features button to see React Router in action... | ||
Now you can share a direct link to that content privately over your LAN or | ||
globally addressable to any device, anywhere. Not bad for a locally-running | ||
Single Page App. | ||
|
||
1. Time to build your own app: run | ||
|
||
```shell | ||
npm run clean | ||
``` | ||
|
||
...and use the built-in generators to start your first feature. | ||
|
||
### Development | ||
|
||
Run `npm start` to see your app at `localhost:3000` | ||
|
||
### Building & Deploying | ||
|
||
1. Run `npm run build`, which will compile all the necessary files to the | ||
`build` folder. | ||
|
||
2. Upload the contents of the `build` folder to your web server's root folder. | ||
|
||
### Structure | ||
|
||
The [`app/`](../../../tree/master/app ':ignore') directory contains your entire application code, including CSS, | ||
JavaScript, HTML and tests. | ||
|
||
The rest of the folders and files only exist to make your life easier, and | ||
should not need to be touched. | ||
|
||
_(If they do have to be changed, please [submit an issue](https://github.com/react-boilerplate/react-boilerplate/issues)!)_ | ||
|
||
### CSS | ||
|
||
Using [tagged template literals](https://www.styled-components.com/docs/advanced#tagged-template-literals) | ||
(a recent addition to JavaScript) and the [power of CSS](https://github.com/styled-components/styled-components/blob/master/docs/css-we-support.md), | ||
`styled-components` allows you to write actual CSS code to style your components. | ||
It also removes the mapping between components and styles – using components as a | ||
low-level styling construct could not be easier! | ||
|
||
See the [CSS documentation](/css/README.md) for more information. | ||
|
||
### JS | ||
|
||
We bundle all your clientside scripts and chunk them into several files using | ||
code splitting where possible. We then automatically optimize your code when | ||
building for production so you don't have to worry about that. | ||
|
||
See the [JS documentation](/js/README.md) for more information about the | ||
JavaScript side of things. | ||
|
||
### SEO | ||
|
||
We use [react-helmet-async](https://github.com/staylor/react-helmet-async) for managing document head tags. Examples on how to | ||
write head tags can be found [here](https://github.com/staylor/react-helmet-async#usage). | ||
|
||
### Testing | ||
|
||
For a thorough explanation of the testing procedure, see the | ||
[testing documentation](/testing/README.md)! | ||
|
||
#### Browser testing | ||
|
||
`npm run start:tunnel` makes your locally-running app globally available on the web | ||
via a temporary URL: great for testing on different devices, client demos, etc! | ||
|
||
#### Unit testing | ||
|
||
Unit tests live in `test/` directories right next to the components being tested | ||
and are run with `npm run test`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
- [General](/general/README.md) | ||
- [CLI Commands](/general/commands.md) | ||
- [Introduction ](/general/introduction.md) | ||
- [Tool Configuration](/general/files.md) | ||
- [Server Configurations](/general/server-configs.md) | ||
- [Deployment](/general/deployment.md) | ||
- [Debugging](/general/debugging.md) | ||
- [FAQ](/general/faq.md) | ||
- [Gotchas](/general/gotchas.md) | ||
- [Remove](/general/remove.md) | ||
- [Extracting components](/general/components.md) | ||
- [Testing](/testing/README.md) | ||
- [Unit Testing](/testing/unit-testing.md) | ||
- [Component Testing](/testing/component-testing.md) | ||
- [Remote Testing](/testing/remote-testing.md) | ||
- [Styling (CSS)](/css/README.md) | ||
- [Next Generation CSS](/css/README.md#next-generation-css) | ||
- [CSS Support](/css/README.md#css-we-support) | ||
- [styled-components](/css/README.md#styled-components) | ||
- [Stylesheet](/css/README.md#stylesheet) | ||
- [CSS Modules](/css/README.md#css-modules) | ||
- [Sass](/css/README.md#sass) | ||
- [LESS](/css/README.md#less) | ||
- [JS](/js/README.md) | ||
- [Redux](/js/redux.md) | ||
- [Immer](/js/immer.md) | ||
- [reselect](/js/reselect.md) | ||
- [redux-saga](/js/redux-saga.md) | ||
- [i18n](/js/i18n.md) | ||
- [routing](/js/routing.md) | ||
- Maintenance | ||
- [Dependency Update](/maintenance/dependency.md) | ||
- [Forks](/forks/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>React Boilerplate</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="React Boilerplate Documentation" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css" | ||
/> | ||
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"> --> | ||
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css"> --> | ||
</head> | ||
<body> | ||
<div id="app">Please wait...</div> | ||
<div id="app"></div> | ||
<script> | ||
window.$docsify = { | ||
// GENERAL | ||
// ----------------------------------------------------------------- | ||
name: 'React Boilerplate Documentation', | ||
repo: 'https://github.com/react-boilerplate/react-boilerplate', | ||
// logo: 'https://raw.githubusercontent.com/react-boilerplate/react-boilerplate-brand/master/assets/banner-metal-optimized.jpg', | ||
// loadNavbar: './_docsify/_navbar.md', | ||
coverpage: './_docsify/_coverpage.md', | ||
homepage: './_docsify/_homepage.md', | ||
loadSidebar: './_docsify/_sidebar.md', | ||
// NAVIGATION | ||
// ----------------------------------------------------------------- | ||
relativePath: true, | ||
alias: { | ||
'/.*/_sidebar.md': '/_docsify/_sidebar.md', | ||
}, | ||
auto2top: true, | ||
maxLevel: 3, | ||
subMaxLevel: 3, | ||
// PLUGINS | ||
// ----------------------------------------------------------------- | ||
search: { | ||
depth: 3, | ||
noData: 'No results!', | ||
placeholder: 'Search...', | ||
}, | ||
}; | ||
</script> | ||
<!-- <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> | ||
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script> --> | ||
<script src="https://cdn.jsdelivr.net/npm/docsify@4"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/docsify-pagination@2/dist/docsify-pagination.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script | ||
</body> | ||
</html> |