Skip to content

Commit 26ed17f

Browse files
committed
fixes:#4 Added example react app.
1 parent b0d9fb0 commit 26ed17f

15 files changed

+13086
-1
lines changed

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
node_modules
44
yarn.lock
55
package-lock.json
6-
coverage
6+
coverage
7+
example

example/.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

example/README.md

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
## Install dependencies
4+
### `npm install`
5+
6+
### Issues in installing dependencies
7+
```ENOENT: no such file or directory, rename ...```
8+
9+
- Delete package-lock.json. `rm ../package-lock.json ./package-lock.json`
10+
- instal dependencies`npm install`
11+
12+
## Available Scripts
13+
14+
In the project directory, you can run:
15+
16+
### `npm start`
17+
18+
Runs the app in the development mode.<br>
19+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
20+
21+
The page will reload if you make edits.<br>
22+
You will also see any lint errors in the console.
23+
24+
### `npm test`
25+
26+
Launches the test runner in the interactive watch mode.<br>
27+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
28+
29+
### `npm run build`
30+
31+
Builds the app for production to the `build` folder.<br>
32+
It correctly bundles React in production mode and optimizes the build for the best performance.
33+
34+
The build is minified and the filenames include the hashes.<br>
35+
Your app is ready to be deployed!
36+
37+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
38+
39+
### `npm run eject`
40+
41+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
42+
43+
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.
44+
45+
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.
46+
47+
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.
48+
49+
## Learn More
50+
51+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
52+
53+
To learn React, check out the [React documentation](https://reactjs.org/).
54+
55+
### Code Splitting
56+
57+
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
58+
59+
### Analyzing the Bundle Size
60+
61+
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
62+
63+
### Making a Progressive Web App
64+
65+
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
66+
67+
### Advanced Configuration
68+
69+
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
70+
71+
### Deployment
72+
73+
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
74+
75+
### `npm run build` fails to minify
76+
77+
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

0 commit comments

Comments
 (0)