├── firestore.indexes.json ├── src ├── pages │ ├── Dashboard.module.css │ ├── BoardView.js │ ├── Dashboard.js │ ├── SignupPage.js │ └── LoginPage.js ├── setupTests.js ├── App.test.js ├── index.css ├── reportWebVitals.js ├── index.js ├── App.css ├── firebase.js ├── stores │ └── authStore.js ├── App.js └── logo.svg ├── .firebaserc ├── public ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── manifest.json └── index.html ├── README.old.md ├── storage.rules ├── .gitignore ├── .env ├── firebase.json ├── firestore.rules ├── package.json ├── LICENSE ├── .firebase └── hosting.YnVpbGQ.cache └── README.md /firestore.indexes.json: -------------------------------------------------------------------------------- 1 | { 2 | "indexes": [], 3 | "fieldOverrides": [] 4 | } 5 | -------------------------------------------------------------------------------- /src/pages/Dashboard.module.css: -------------------------------------------------------------------------------- 1 | .container { 2 | padding: 20px; 3 | } 4 | -------------------------------------------------------------------------------- /.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "kanbanme-7e457" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strings/kanbanme/main/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strings/kanbanme/main/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strings/kanbanme/main/public/logo512.png -------------------------------------------------------------------------------- /README.old.md: -------------------------------------------------------------------------------- 1 | # KanbanMe 2 | An open source alternative to Trello and similar web apps 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/pages/BoardView.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { useParams } from 'react-router-dom'; 3 | 4 | function BoardView() { 5 | const { boardId } = useParams(); 6 | 7 | return ( 8 |
9 |

Board View

10 |

You are viewing board: {boardId}

11 |
12 | ); 13 | } 14 | 15 | export default BoardView; 16 | -------------------------------------------------------------------------------- /storage.rules: -------------------------------------------------------------------------------- 1 | rules_version = '2'; 2 | 3 | // Craft rules based on data in your Firestore database 4 | // allow write: if firestore.get( 5 | // /databases/(default)/documents/users/$(request.auth.uid)).data.isAdmin; 6 | service firebase.storage { 7 | match /b/{bucket}/o { 8 | match /{allPaths=**} { 9 | allow read, write: if false; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | REACT_APP_FIREBASE_API_KEY=AIzaSyCzK_rspQjOpCPWaqI4V5mQqZ_RFIN_Y1Q 2 | REACT_APP_FIREBASE_AUTH_DOMAIN=kanbanme-7e457.firebaseapp.com 3 | REACT_APP_FIREBASE_PROJECT_ID=kanbanme-7e457 4 | REACT_APP_FIREBASE_STORAGE_BUCKET=kanbanme-7e457.appspot.com 5 | REACT_APP_FIREBASE_MESSAGING_SENDER_ID=636063834801 6 | REACT_APP_FIREBASE_APP_ID=1:636063834801:web:0d17823d505cf30bd1b890 7 | REACT_APP_FIREBASE_MEASUREMENT_ID=G-DBXMBBF1PS 8 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById('root')); 8 | root.render( 9 | 10 | 11 | 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /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/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | 40 | body { 41 | margin: 0; 42 | font-family: sans-serif; 43 | } 44 | -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "firestore": { 3 | "rules": "firestore.rules", 4 | "indexes": "firestore.indexes.json" 5 | }, 6 | "hosting": { 7 | "public": "build", 8 | "ignore": [ 9 | "firebase.json", 10 | "**/.*", 11 | "**/node_modules/**" 12 | ], 13 | "rewrites": [ 14 | { 15 | "source": "**", 16 | "destination": "/index.html" 17 | } 18 | ] 19 | }, 20 | "storage": { 21 | "rules": "storage.rules" 22 | }, 23 | "emulators": { 24 | "auth": { 25 | "port": 9099 26 | }, 27 | "firestore": { 28 | "port": 8080 29 | }, 30 | "database": { 31 | "port": 9000 32 | }, 33 | "hosting": { 34 | "port": 5000 35 | }, 36 | "ui": { 37 | "enabled": true 38 | }, 39 | "singleProjectMode": true 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /firestore.rules: -------------------------------------------------------------------------------- 1 | rules_version = '2'; 2 | 3 | service cloud.firestore { 4 | match /databases/{database}/documents { 5 | match /users/{userId} { 6 | allow read, write: if request.auth.uid == userId; 7 | } 8 | 9 | // This rule allows anyone with your Firestore database reference to view, edit, 10 | // and delete all data in your Firestore database. It is useful for getting 11 | // started, but it is configured to expire after 30 days because it 12 | // leaves your app open to attackers. At that time, all client 13 | // requests to your Firestore database will be denied. 14 | // 15 | // Make sure to write security rules for your app before that time, or else 16 | // all client requests to your Firestore database will be denied until you Update 17 | // your rules 18 | match /{document=**} { 19 | allow read, write: if request.time < timestamp.date(2024, 10, 1); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kanbanme", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.17.0", 7 | "@testing-library/react": "^13.4.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "firebase": "^10.13.1", 10 | "react": "^18.3.1", 11 | "react-dom": "^18.3.1", 12 | "react-router-dom": "^6.26.1", 13 | "react-scripts": "5.0.1", 14 | "web-vitals": "^2.1.4", 15 | "zustand": "^4.5.5" 16 | }, 17 | "scripts": { 18 | "start": "WATCHPACK_POLLING=true react-scripts start", 19 | "build": "react-scripts build", 20 | "test": "react-scripts test", 21 | "eject": "react-scripts eject" 22 | }, 23 | "eslintConfig": { 24 | "extends": [ 25 | "react-app", 26 | "react-app/jest" 27 | ] 28 | }, 29 | "browserslist": { 30 | "production": [ 31 | ">0.2%", 32 | "not dead", 33 | "not op_mini all" 34 | ], 35 | "development": [ 36 | "last 1 chrome version", 37 | "last 1 firefox version", 38 | "last 1 safari version" 39 | ] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 TChavez 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/firebase.js: -------------------------------------------------------------------------------- 1 | import { initializeApp } from 'firebase/app'; 2 | import { getAuth } from 'firebase/auth'; 3 | import { getFirestore } from 'firebase/firestore'; 4 | import { getStorage } from 'firebase/storage'; 5 | import { getAnalytics } from 'firebase/analytics'; 6 | 7 | const firebaseConfig = { 8 | apiKey: process.env.REACT_APP_FIREBASE_API_KEY, 9 | authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN, 10 | projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID, 11 | storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET, 12 | messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID, 13 | appId: process.env.REACT_APP_FIREBASE_APP_ID, 14 | measurementId: process.env.REACT_APP_FIREBASE_MEASUREMENT_ID, 15 | }; 16 | 17 | // Initialize Firebase 18 | const firebaseApp = initializeApp(firebaseConfig); 19 | 20 | // Initialize Firebase services 21 | const auth = getAuth(firebaseApp); 22 | const firestore = getFirestore(firebaseApp); 23 | const storage = getStorage(firebaseApp); 24 | const analytics = getAnalytics(firebaseApp); 25 | 26 | export { auth, firestore, storage, analytics }; 27 | export default firebaseApp; 28 | -------------------------------------------------------------------------------- /src/pages/Dashboard.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | import { firestore as db } from '../firebase'; 3 | import { collection, query, where, onSnapshot } from 'firebase/firestore'; 4 | import useAuthStore from '../stores/authStore'; 5 | import { Link } from 'react-router-dom'; 6 | 7 | function Dashboard() { 8 | const [boards, setBoards] = useState([]); 9 | const currentUser = useAuthStore((state) => state.currentUser); 10 | 11 | useEffect(() => { 12 | if (currentUser) { 13 | const q = query( 14 | collection(db, 'boards'), 15 | where('owner', '==', currentUser.uid) 16 | ); 17 | 18 | const unsubscribe = onSnapshot(q, (snapshot) => { 19 | setBoards(snapshot.docs.map((doc) => ({ id: doc.id, ...doc.data() }))); 20 | }); 21 | 22 | return unsubscribe; 23 | } 24 | }, [currentUser]); 25 | 26 | return ( 27 |
28 |

Dashboard

29 | {boards.map((board) => ( 30 |
31 | 32 | {board.name} 33 | 34 |
35 | ))} 36 |
37 | ); 38 | } 39 | 40 | export default Dashboard; 41 | -------------------------------------------------------------------------------- /.firebase/hosting.YnVpbGQ.cache: -------------------------------------------------------------------------------- 1 | logo192.png,1725218882681,50bd60c6fefdd7de57fb652cf717e33c712106ffe0a32da5f75a12bf22cecbc0 2 | robots.txt,1725218882700,2544ca049f223a42bff01f72ad930a5edba75bbb7199d0f8430a02ff5aca16ec 3 | manifest.json,1725218882694,c12dd51ed2c8ac94acf3c25d1f0c541d667c90c8557ac43cb42d0a6df086bd7f 4 | logo512.png,1725218882688,9ab6cb941e493973baf9755bd3fc76988762e6b514d5bc365aeaccefa0de034f 5 | favicon.ico,1725218882674,fc26b72d1f6d47474d8993a667b2af803ede41c9996d0f69e62ed6e415d7fed0 6 | index.html,1725218937468,86f55f05cbdb2224dc69285dbb32f1a627a86e1b489e53862ee9f86b60b43406 7 | asset-manifest.json,1725218937469,716732699954433802d2021979fab9e5378d43e860375596657271341eddde2f 8 | static/js/453.fc98e2b2.chunk.js.map,1725218937478,b812de3f03a0582180b1f5781c74beaeab2220c5dcc121ee6c2615709e88a460 9 | static/js/main.1aadb381.js.LICENSE.txt,1725218937477,d48425c01ca5dc5fbff2b40c478fddc85760c0caf496160208784bdbb3474622 10 | static/js/453.fc98e2b2.chunk.js,1725218937478,d95a87b7b61af149f9c5c344be30bf8ba133df119bd5e8c50ae9fc4a4d58529d 11 | static/css/main.db3d2cb8.css.map,1725218937478,5e40b25bdaa85c2ddfedc22b83ad88d9ed395cbdf1f8b8b66e7e29d3180d7841 12 | static/css/main.db3d2cb8.css,1725218937477,10b12fb5970f4080fbf6f8eb2762659863f4e62faae852443d9c0ebc4d32a0b2 13 | static/js/main.1aadb381.js,1725218937481,8fbd7dbaec999c7cf747724475fe9b2d6d7a65ab8ac930a4123c4fc042f2b6a9 14 | static/js/main.1aadb381.js.map,1725218937493,435a6db1bdc18f90f177ee7158c0192533e3ac2ae722af2a94dcf0e31284d750 15 | -------------------------------------------------------------------------------- /src/stores/authStore.js: -------------------------------------------------------------------------------- 1 | import create from 'zustand'; 2 | import { getAuth, createUserWithEmailAndPassword, signInWithEmailAndPassword, signOut, onAuthStateChanged } from 'firebase/auth'; 3 | 4 | const auth = getAuth(); // Initialize the auth instance once 5 | 6 | const useAuthStore = create((set) => ({ 7 | currentUser: null, 8 | loading: true, 9 | 10 | signup: async (email, password) => { 11 | try { 12 | const userCredential = await createUserWithEmailAndPassword(auth, email, password); 13 | const user = userCredential.user; 14 | console.log('User registered:', user); 15 | } catch (error) { 16 | console.log('Signup error:', error); 17 | throw error; 18 | } 19 | }, 20 | 21 | login: async (email, password) => { 22 | try { 23 | await signInWithEmailAndPassword(auth, email, password); 24 | } catch (error) { 25 | console.log('Login error:', error); 26 | throw error; 27 | } 28 | }, 29 | 30 | logout: async () => { 31 | try { 32 | await signOut(auth); 33 | } catch (error) { 34 | console.log('Logout error:', error); 35 | throw error; 36 | } 37 | }, 38 | 39 | initializeAuth: () => { 40 | const unsubscribe = onAuthStateChanged(auth, (user) => { 41 | set({ currentUser: user, loading: false }); 42 | }); 43 | return unsubscribe; // Return unsubscribe function for cleanup 44 | } 45 | })); 46 | 47 | export default useAuthStore; 48 | -------------------------------------------------------------------------------- /src/pages/SignupPage.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import useAuthStore from '../stores/authStore'; 3 | 4 | function SignupPage() { 5 | const [email, setEmail] = useState(''); 6 | const [password, setPassword] = useState(''); 7 | const signup = useAuthStore((state) => state.signup); 8 | 9 | async function handleSubmit(e) { 10 | e.preventDefault(); 11 | console.log('Attempting to sign up with:', email, password); 12 | 13 | try { 14 | await signup(email, password); 15 | alert('User registered successfully!'); 16 | } catch (error) { 17 | console.error('Error signing up:', error); 18 | alert('Signup failed: ' + error.message); 19 | } 20 | } 21 | 22 | return ( 23 |
24 |

Sign Up

25 |
26 |
27 | 28 | setEmail(e.target.value)} 33 | required 34 | /> 35 |
36 |
37 | 38 | setPassword(e.target.value)} 43 | required 44 | /> 45 |
46 | 47 |
48 |
49 | ); 50 | } 51 | 52 | export default SignupPage; 53 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react'; 2 | import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; 3 | import Dashboard from './pages/Dashboard'; 4 | import LoginPage from './pages/LoginPage'; 5 | import useAuthStore from './stores/authStore'; // Assuming authStore.js is in the context folder 6 | import SignupPage from './pages/SignupPage'; 7 | import BoardView from './pages/BoardView'; 8 | 9 | import './App.css'; 10 | 11 | function App() { 12 | const initializeAuth = useAuthStore((state) => state.initializeAuth); 13 | const currentUser = useAuthStore((state) => state.currentUser); 14 | const loading = useAuthStore((state) => state.loading); 15 | 16 | useEffect(() => { 17 | const unsubscribe = initializeAuth(); // Call initializeAuth to set up listener 18 | return () => unsubscribe(); // Clean up listener on unmount 19 | }, [initializeAuth]); 20 | 21 | console.log("Auth state:", currentUser, loading); // Debugging line 22 | 23 | if (loading) { 24 | return
Loading...
; // Display a loading message while checking authentication status 25 | } 26 | 27 | return ( 28 | 29 |
30 | 31 | } /> 32 | 33 | 34 | : } /> 35 | : } /> 36 | } /> 37 | 38 | 39 |
40 |
41 | ); 42 | } 43 | 44 | export default App; 45 | -------------------------------------------------------------------------------- /src/pages/LoginPage.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import useAuthStore from '../stores/authStore'; 3 | import { useNavigate } from 'react-router-dom'; 4 | import { Link } from 'react-router-dom'; 5 | 6 | function LoginPage() { 7 | const [email, setEmail] = useState(''); 8 | const [password, setPassword] = useState(''); 9 | const login = useAuthStore((state) => state.login); 10 | const navigate = useNavigate(); 11 | 12 | async function handleSubmit(e) { 13 | e.preventDefault(); 14 | 15 | try { 16 | await login(email, password); 17 | navigate('/'); // Redirect to dashboard after successful login 18 | } catch (error) { 19 | console.log(error); 20 | // Handle login error (e.g., display an error message) 21 | } 22 | } 23 | 24 | return ( 25 |
26 |

Login

27 |
28 |
29 | 30 | setEmail(e.target.value)} 35 | required 36 | /> 37 |
38 |
39 | 40 | setPassword(e.target.value)} 45 | required 46 | /> 47 |
48 |

Don't have an account? Sign Up

49 | 50 |
51 |
52 | ); 53 | } 54 | 55 | export default LoginPage; 56 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 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. 21 | 22 | ### `npm run build` 23 | 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. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 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. 37 | 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. 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. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | 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) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | 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) 55 | 56 | ### Making a Progressive Web App 57 | 58 | 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) 59 | 60 | ### Advanced Configuration 61 | 62 | 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) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | --------------------------------------------------------------------------------