|
1 |
| -# React-SPA |
| 1 | +# Getting Started with Create React App and Redux |
2 | 2 |
|
3 |
| -React spa based on create-react-app. |
| 3 | +This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app), using the [Redux](https://redux.js.org/) and [Redux Toolkit](https://redux-toolkit.js.org/) template. |
4 | 4 |
|
5 |
| -[](https://img.shields.io/badge/node.js-%3E=_4.0-green.svg?style=flat-square) |
6 |
| -[](https://img.shields.io/npm/v/npm.svg?style=flat-square) |
7 |
| -[](https://img.shields.io/npm/dm/npm.svg?style=flat-square) |
| 5 | +## Available Scripts |
8 | 6 |
|
| 7 | +In the project directory, you can run: |
9 | 8 |
|
10 |
| -## Features |
| 9 | +### `npm start` |
11 | 10 |
|
12 |
| -- React V17 |
13 |
| -- Redux |
14 |
| -- React Router V4 |
15 |
| -- Webpack 4.x |
16 |
| -- Mock |
17 |
| -- Eslint |
| 11 | +Runs the app in the development mode.\ |
| 12 | +Open [http://localhost:3000](http://localhost:3000) to view it in your browser. |
18 | 13 |
|
19 |
| -## Getting Started |
20 |
| -Checkout this repo, install dependencies, then start the process with the following: |
| 14 | +The page will reload when you make changes.\ |
| 15 | +You may also see any lint errors in the console. |
21 | 16 |
|
22 |
| -``` |
23 |
| - git clone https://github.com/allan2coder/React-SPA.git |
24 |
| - cd React-SPA |
25 |
| - npm install |
26 |
| - npm start |
27 |
| -``` |
| 17 | +### `npm test` |
28 | 18 |
|
29 |
| -## Build the app |
| 19 | +Launches the test runner in the interactive watch mode.\ |
| 20 | +See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
30 | 21 |
|
31 |
| -``` |
32 |
| -npm run build |
33 |
| -``` |
| 22 | +### `npm run build` |
34 | 23 |
|
35 |
| -## Learn More |
36 |
| - |
37 |
| -### Code Splitting |
| 24 | +Builds the app for production to the `build` folder.\ |
| 25 | +It correctly bundles React in production mode and optimizes the build for the best performance. |
38 | 26 |
|
39 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) |
| 27 | +The build is minified and the filenames include the hashes.\ |
| 28 | +Your app is ready to be deployed! |
40 | 29 |
|
41 |
| -### Analyzing the Bundle Size |
| 30 | +See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
42 | 31 |
|
43 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) |
| 32 | +### `npm run eject` |
44 | 33 |
|
45 |
| -### Making a Progressive Web App |
| 34 | +**Note: this is a one-way operation. Once you `eject`, you can't go back!** |
46 | 35 |
|
47 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) |
| 36 | +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. |
48 | 37 |
|
49 |
| -### Advanced Configuration |
50 |
| - |
51 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) |
| 38 | +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. |
52 | 39 |
|
| 40 | +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. |
53 | 41 |
|
| 42 | +## Learn More |
54 | 43 |
|
55 |
| -## License |
| 44 | +You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
56 | 45 |
|
57 |
| -MIT |
| 46 | +To learn React, check out the [React documentation](https://reactjs.org/). |
0 commit comments