├── public ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── manifest.json └── index.html ├── .gitignore ├── src ├── Reducers │ ├── rootReducer.js │ ├── authReducer.js │ └── taskReducer.js ├── config │ └── firebaseConfig.js ├── components │ ├── dashboard │ │ └── Dashboard.jsx │ ├── layout │ │ ├── NavBar.jsx │ │ └── NavItems.jsx │ ├── tasks │ │ ├── Check.jsx │ │ ├── Tasks.jsx │ │ ├── Task.jsx │ │ └── AddTask.jsx │ └── auth │ │ ├── SignIn.jsx │ │ └── SignUp.jsx ├── App.js ├── actions │ ├── authActions.js │ └── taskActions.js └── index.js ├── package.json └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaoocharles/todo-app/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaoocharles/todo-app/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaoocharles/todo-app/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 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* 24 | -------------------------------------------------------------------------------- /src/Reducers/rootReducer.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from "redux"; 2 | import { firebaseReducer } from "react-redux-firebase"; 3 | import { firestoreReducer } from "redux-firestore"; 4 | import taskReducer from "./taskReducer"; 5 | import authReducer from "./authReducer"; 6 | 7 | const rootReducer = combineReducers({ 8 | firebase: firebaseReducer, 9 | firestore: firestoreReducer, 10 | task: taskReducer, 11 | auth: authReducer 12 | }); 13 | 14 | export default rootReducer; 15 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/config/firebaseConfig.js: -------------------------------------------------------------------------------- 1 | import firebase from "firebase/app"; 2 | import "firebase/firestore"; 3 | import "firebase/auth"; 4 | 5 | var firebaseConfig = { 6 | apiKey: "AIzaSyB5nMtLlWC9TaNamN3SWO-1sozXbeih2do", 7 | authDomain: "todo-d1b7e.firebaseapp.com", 8 | databaseURL: "https://todo-d1b7e.firebaseio.com", 9 | projectId: "todo-d1b7e", 10 | storageBucket: "todo-d1b7e.appspot.com", 11 | messagingSenderId: "456019758360", 12 | appId: "1:456019758360:web:928bbecc2dab4b313d226d", 13 | }; 14 | 15 | firebase.initializeApp(firebaseConfig); 16 | firebase.firestore(); 17 | 18 | export default firebase; 19 | -------------------------------------------------------------------------------- /src/components/dashboard/Dashboard.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import AddTask from "../tasks/AddTask"; 3 | import Tasks from "../tasks/Tasks"; 4 | import { connect } from "react-redux"; 5 | import {Redirect} from "react-router-dom" 6 | 7 | const Dashboard = ({ uid }) => { 8 | if (!uid) return ; 9 | return ( 10 | <> 11 | 12 | 13 | 14 | ); 15 | }; 16 | 17 | const mapStateToProps = (state) => { 18 | const uid = state.firebase.auth.uid; 19 | return { 20 | uid: uid, 21 | }; 22 | }; 23 | 24 | export default connect(mapStateToProps)(Dashboard); 25 | -------------------------------------------------------------------------------- /src/components/layout/NavBar.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Link } from "react-router-dom"; 3 | import NavItems from "./NavItems"; 4 | import { connect } from "react-redux"; 5 | 6 | const NavBar = () => { 7 | return ( 8 | <> 9 | 15 | 16 | ); 17 | }; 18 | 19 | const mapStateToProps = (state) => { 20 | console.log(state); 21 | }; 22 | 23 | export default connect(mapStateToProps)(NavBar); 24 | -------------------------------------------------------------------------------- /src/components/tasks/Check.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Check = ({ checked, onClick }) => { 4 | if (checked === true) { 5 | return ( 6 | 11 | check_circle_outline 12 | 13 | ); 14 | } else { 15 | return ( 16 | 21 | check_circle_outline 22 | 23 | ); 24 | } 25 | }; 26 | 27 | export default Check; 28 | -------------------------------------------------------------------------------- /src/Reducers/authReducer.js: -------------------------------------------------------------------------------- 1 | import { toast } from "react-toastify"; 2 | 3 | const authReducer = (state = {}, action) => { 4 | switch (action.type) { 5 | case "SIGN_IN": 6 | toast("Welcome back.."); 7 | return state; 8 | case "SIGN_IN_ERR": 9 | toast.error("Sign in error..."); 10 | return state; 11 | case "SIGN_OUT": 12 | toast("You signed out.."); 13 | return state; 14 | case "SIGN_UP": 15 | toast("Welcome.."); 16 | return state; 17 | case "SIGN_UP_ERR": 18 | toast.error("Sign up error..."); 19 | return state; 20 | default: 21 | return state; 22 | } 23 | }; 24 | 25 | export default authReducer; 26 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { BrowserRouter, Route, Switch } from "react-router-dom"; 3 | import SignIn from "./components/auth/SignIn"; 4 | import SignUp from "./components/auth/SignUp"; 5 | import Dashboard from "./components/dashboard/Dashboard"; 6 | import NavBar from "./components/layout/NavBar"; 7 | import { ToastContainer } from "react-toastify"; 8 | import "react-toastify/dist/ReactToastify.css"; 9 | 10 | function App() { 11 | return ( 12 | <> 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | ); 24 | } 25 | 26 | export default App; 27 | -------------------------------------------------------------------------------- /src/Reducers/taskReducer.js: -------------------------------------------------------------------------------- 1 | import { toast } from "react-toastify"; 2 | 3 | const taskReducer = (state = {}, action) => { 4 | switch (action.type) { 5 | case "ADD_TASK": { 6 | toast.success("Added a task"); 7 | return state; 8 | } 9 | case "ADD_TASK_ERR": { 10 | toast.error("An error occurred"); 11 | return state; 12 | } 13 | case "REMOVE_TASK": { 14 | toast.warn("A task was removed..."); 15 | return state; 16 | } 17 | case "REMOVE_TASK_ERR": { 18 | toast.error("A task remove error occured...."); 19 | return state; 20 | } 21 | case "TOGGLE_CHECKED": { 22 | toast.info("A task status changed..."); 23 | return state; 24 | } 25 | case "TOGGLE_CHECKED_ERR": { 26 | toast.error("A task status change error occured..."); 27 | return state; 28 | } 29 | default: 30 | return state; 31 | } 32 | }; 33 | 34 | export default taskReducer; 35 | -------------------------------------------------------------------------------- /src/components/layout/NavItems.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Link } from "react-router-dom"; 3 | import { signOut } from "../../actions/authActions"; 4 | import { connect } from "react-redux"; 5 | 6 | const NavItems = ({ signOut, uid }) => { 7 | if (uid) { 8 | return ( 9 | 10 | Sign Out 11 | 12 | ); 13 | } else { 14 | return ( 15 | <> 16 | 17 | Sign Up 18 | 19 | 20 | Sign In 21 | 22 | 23 | ); 24 | } 25 | }; 26 | 27 | const mapStateToProps = (state) => { 28 | const uid = state.firebase.auth.uid; 29 | return { 30 | uid: uid, 31 | }; 32 | }; 33 | 34 | const mapDistpatchToProps = (dispatch) => { 35 | return { 36 | signOut: () => dispatch(signOut()), 37 | }; 38 | }; 39 | 40 | export default connect(mapStateToProps, mapDistpatchToProps)(NavItems); 41 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "to-do", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^4.2.4", 7 | "@testing-library/react": "^9.5.0", 8 | "@testing-library/user-event": "^7.2.1", 9 | "bootstrap": "^4.4.1", 10 | "firebase": "^7.14.5", 11 | "moment": "^2.26.0", 12 | "react": "^16.13.1", 13 | "react-dom": "^16.13.1", 14 | "react-redux": "^7.2.0", 15 | "react-redux-firebase": "^3.4.0", 16 | "react-router-dom": "^5.1.2", 17 | "react-scripts": "3.4.1", 18 | "react-toastify": "^6.0.5", 19 | "redux": "^4.0.5", 20 | "redux-firestore": "^0.13.0", 21 | "redux-thunk": "^2.3.0" 22 | }, 23 | "scripts": { 24 | "start": "react-scripts start", 25 | "build": "react-scripts build", 26 | "test": "react-scripts test", 27 | "eject": "react-scripts eject" 28 | }, 29 | "eslintConfig": { 30 | "extends": "react-app" 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/actions/authActions.js: -------------------------------------------------------------------------------- 1 | export const signIn = creds => { 2 | return (dispatch, getState, { getFirebase }) => { 3 | const firebase = getFirebase(); 4 | 5 | firebase 6 | .auth() 7 | .signInWithEmailAndPassword(creds.email, creds.password) 8 | .then(() => { 9 | dispatch({ type: "SIGN_IN" }); 10 | }) 11 | .catch(err => { 12 | dispatch({ type: "SIGN_IN_ERR" }, err); 13 | }); 14 | }; 15 | }; 16 | 17 | export const signOut = () => { 18 | return (dispatch, getState, { getFirebase }) => { 19 | const firebase = getFirebase(); 20 | 21 | firebase 22 | .auth() 23 | .signOut() 24 | .then(() => { 25 | dispatch({ type: "SIGN_OUT" }); 26 | }); 27 | }; 28 | }; 29 | 30 | export const signUp = creds => { 31 | return (dispatch, getState, { getFirebase }) => { 32 | const firebase = getFirebase(); 33 | 34 | firebase 35 | .auth() 36 | .createUserWithEmailAndPassword(creds.email, creds.password) 37 | .then(() => { 38 | dispatch({ type: "SIGN_UP" }); 39 | }) 40 | .catch(err => { 41 | dispatch({ type: "SIGN_UP_ERR" }, err); 42 | }); 43 | }; 44 | }; -------------------------------------------------------------------------------- /src/components/tasks/Tasks.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Task from "./Task"; 3 | import { connect } from "react-redux"; 4 | import { compose } from "redux"; 5 | import { firestoreConnect } from "react-redux-firebase"; 6 | 7 | const Tasks = ({ tasks }) => { 8 | return ( 9 | <> 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | {tasks && tasks.map((task) => )} 24 | 25 |
TasksAdded OnStatusDelete
26 | 27 | ); 28 | }; 29 | 30 | const mapStateToProps = (state) => { 31 | console.log(state); 32 | const tasks = state.firestore.ordered.tasks; 33 | return { 34 | tasks: tasks, 35 | uid: state.firebase.auth.uid 36 | }; 37 | }; 38 | export default compose( 39 | connect(mapStateToProps), 40 | firestoreConnect((ownProps) => [ 41 | { 42 | collection: "tasks", 43 | where: ["authorId", "==", ownProps.uid], 44 | orderBy: ["date", "desc"], 45 | }, 46 | ]) 47 | )(Tasks); 48 | -------------------------------------------------------------------------------- /src/components/tasks/Task.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import moment from "moment"; 3 | import { removeTask } from "../../actions/taskActions"; 4 | import { connect } from "react-redux"; 5 | import Check from "./Check"; 6 | import { toggleChecked } from "../../actions/taskActions"; 7 | 8 | const Task = ({ task, removeTask, toggleChecked }) => { 9 | const handleRemove = (task) => { 10 | removeTask(task); 11 | }; 12 | 13 | const handleCheck = (task) => { 14 | toggleChecked(task); 15 | }; 16 | 17 | return ( 18 | <> 19 | 20 | {task.task} 21 | {moment(task.date.toDate()).calendar()} 22 | 23 | handleCheck(task)} checked={task.checked} /> 24 | 25 | 26 | handleRemove(task)} 30 | > 31 | delete 32 | 33 | 34 | 35 | 36 | ); 37 | }; 38 | 39 | const mapDispatchToProps = (dispatch) => { 40 | return { 41 | removeTask: (task) => dispatch(removeTask(task)), 42 | toggleChecked: (task) => dispatch(toggleChecked(task)), 43 | }; 44 | }; 45 | 46 | export default connect(null, mapDispatchToProps)(Task); 47 | -------------------------------------------------------------------------------- /src/components/tasks/AddTask.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { addTask } from "../../actions/taskActions"; 3 | import { connect } from "react-redux"; 4 | 5 | class AddTask extends Component { 6 | state = { 7 | task: "", 8 | checked: "false", 9 | }; 10 | 11 | handleChange = (e) => { 12 | this.setState({ 13 | [e.target.id]: e.target.value, 14 | }); 15 | }; 16 | 17 | handleSubmit = (e) => { 18 | e.preventDefault(); 19 | this.props.addTask(this.state); 20 | document.getElementById("addTaskForm").reset(); 21 | console.log(this.state); 22 | }; 23 | 24 | render() { 25 | return ( 26 | <> 27 |
34 | 35 |
36 | 37 | 43 |
44 | 47 |
48 | 49 | ); 50 | } 51 | } 52 | 53 | const mapDispatchToProps = (dispatch) => { 54 | return { 55 | addTask: (task) => dispatch(addTask(task)), 56 | }; 57 | }; 58 | 59 | export default connect(null, mapDispatchToProps)(AddTask); 60 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./App"; 4 | import "bootstrap/dist/css/bootstrap.css"; 5 | import { createStore, applyMiddleware } from "redux"; 6 | import rootReducer from "./Reducers/rootReducer"; 7 | import { Provider } from "react-redux"; 8 | import thunk from "redux-thunk"; 9 | import { getFirebase, ReactReduxFirebaseProvider } from "react-redux-firebase"; 10 | import firebase from "./config/firebaseConfig"; 11 | import { createFirestoreInstance } from "redux-firestore"; 12 | import { useSelector } from "react-redux"; 13 | import { isLoaded } from "react-redux-firebase"; 14 | 15 | const store = createStore( 16 | rootReducer, 17 | applyMiddleware(thunk.withExtraArgument({ getFirebase })) 18 | ); 19 | 20 | const rrfProps = { 21 | firebase, 22 | config: {}, 23 | dispatch: store.dispatch, 24 | createFirestoreInstance, 25 | }; 26 | 27 | function AuthIsLoaded({ children }) { 28 | const auth = useSelector(state => state.firebase.auth); 29 | if (!isLoaded(auth)) 30 | return ( 31 |
32 |
37 | Loading... 38 |
39 |
40 | ); 41 | return children; 42 | } 43 | 44 | ReactDOM.render( 45 | 46 | 47 | 48 | 49 | 50 | 51 | , 52 | document.getElementById("root") 53 | ); 54 | -------------------------------------------------------------------------------- /src/actions/taskActions.js: -------------------------------------------------------------------------------- 1 | export const addTask = (task) => { 2 | return (dispatch, getState, { getFirebase }) => { 3 | const firestore = getFirebase().firestore(); 4 | const authorId = getState().firebase.auth.uid 5 | 6 | firestore 7 | .collection("tasks") 8 | .add({ 9 | ...task, 10 | authorId: authorId, 11 | date: new Date(), 12 | }) 13 | .then(() => { 14 | dispatch({ 15 | type: "ADD_TASK", 16 | task, 17 | }); 18 | }) 19 | .catch((err) => { 20 | dispatch({ 21 | type: "ADD_TASK_ERR", 22 | err, 23 | }); 24 | }); 25 | }; 26 | }; 27 | 28 | export const removeTask = (task) => { 29 | return (dispatch, getState, { getFirebase }) => { 30 | const firestore = getFirebase().firestore(); 31 | firestore 32 | .collection("tasks") 33 | .doc(task.id) 34 | .delete() 35 | .then(() => { 36 | dispatch({ 37 | type: "REMOVE_TASK", 38 | }); 39 | }) 40 | .catch((err) => { 41 | dispatch({ 42 | type: "REMOVE_TASK_ERR", 43 | err, 44 | }); 45 | }); 46 | }; 47 | }; 48 | 49 | export const toggleChecked = (task) => { 50 | return (dispatch, getState, { getFirebase }) => { 51 | const firestore = getFirebase().firestore(); 52 | 53 | firestore 54 | .collection("tasks") 55 | .doc(task.id) 56 | .set( 57 | { 58 | ...task, 59 | checked: !task.checked, 60 | }, 61 | { merge: true } 62 | ) 63 | .then(() => { 64 | dispatch({ 65 | type: "TOGGLE_CHECKED", 66 | task, 67 | }); 68 | }) 69 | .catch((err) => { 70 | dispatch({ 71 | type: "TOGGLE_CHECKED_ERR", 72 | err, 73 | }); 74 | }); 75 | }; 76 | }; 77 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | TodoApp 28 | 32 | 33 | 34 | 35 |
36 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/components/auth/SignIn.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { signIn } from "../../actions/authActions"; 3 | import { connect } from "react-redux"; 4 | import { Redirect } from "react-router-dom"; 5 | 6 | class SignIn extends Component { 7 | state = { 8 | email: "", 9 | password: "", 10 | }; 11 | 12 | handleChange = (e) => { 13 | this.setState({ 14 | [e.target.id]: e.target.value, 15 | }); 16 | }; 17 | 18 | handleSubmit = (e) => { 19 | e.preventDefault(); 20 | console.log(this.state); 21 | this.props.signIn(this.state); 22 | }; 23 | 24 | render() { 25 | const { uid } = this.props; 26 | if(uid) return 27 | return ( 28 | <> 29 |
35 | 36 | {" "} 37 |

Sign In

38 |
39 |
40 | 41 | 47 |
48 |
49 | 50 | 56 |
57 | 60 |
61 | 62 | ); 63 | } 64 | } 65 | 66 | const mapStateToProps = (state) => { 67 | console.log(state); 68 | const uid = state.firebase.auth.uid; 69 | return { 70 | uid: uid, 71 | }; 72 | }; 73 | 74 | const mapDispatchToProps = (dispatch) => { 75 | return { 76 | signIn: (creds) => dispatch(signIn(creds)), 77 | }; 78 | }; 79 | 80 | export default connect(mapStateToProps, mapDispatchToProps)(SignIn); 81 | -------------------------------------------------------------------------------- /src/components/auth/SignUp.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { signUp } from "../../actions/authActions"; 3 | import { connect } from "react-redux"; 4 | import { Redirect } from "react-router-dom"; 5 | 6 | class SignUp extends Component { 7 | state = { 8 | email: "", 9 | password: "", 10 | }; 11 | 12 | handleChange = (e) => { 13 | this.setState({ 14 | [e.target.id]: e.target.value, 15 | }); 16 | }; 17 | 18 | handleSubmit = (e) => { 19 | e.preventDefault(); 20 | console.log(this.state); 21 | this.props.signUp(this.state); 22 | }; 23 | 24 | render() { 25 | const { uid } = this.props; 26 | if (uid) return ; 27 | return ( 28 | <> 29 |
35 | 36 | {" "} 37 |

Sign Up

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