Skip to content

Commit 51c3efb

Browse files
author
Chris on Code
committed
apps
0 parents  commit 51c3efb

File tree

203 files changed

+175364
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+175364
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Make 20 React Apps
2+
3+
In this repo, you'll find the starter files and the finished files for the 20 React Apps that we make in the course: [Make 20 React Apps](https://20ReactApps.com)
4+
5+
## Getting Help
6+
7+
Need some help? I've got a chatbox on my site [courses.chrisoncode.io](https://courses.chrisoncode.io) that you can use to chat with me.
8+
9+
## Pull Requests
10+
11+
If you've found some problems with the files and apps we've built, I'm happy to look at pull requests. I try to keep these files as **close to the videos** as possible so I'm not looking for full rewrites.
12+
13+
Any big errors or clarifications that you see, pull requests are appreciated!

VS Code Setup.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# VS Code Setup
2+
3+
Hey hey! 😃 [VS Code](https://code.visualstudio.com/) is an amazing editor. We'll be using it for this entire course.
4+
5+
Here you'll find my VS Code Settings, extensions, fonts, and favorite keyboard shortcuts.
6+
7+
All of this is meant to make us the most efficient and fast developers possible.
8+
9+
## Settings
10+
11+
- Auto format on save. Let Prettier handle formatting for us.
12+
- Cursor smooth caret animation on. A cool little effect
13+
- Hide activity bar
14+
- Hide status bar
15+
16+
## Extensions
17+
18+
- [Peacock](https://marketplace.visualstudio.com/items?itemName=johnpapa.vscode-peacock): To change the color of our editor
19+
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint): To help find errors and fix them
20+
- [JavaScript (ES6) code snippets](https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets): Snippets to speed up writing code (clg for console.log is the best)
21+
- [Path Intellisense](https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense): Easy way to import from other files
22+
- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode): Auto format. Let the humans write code. Let the computer format.
23+
- [Simple React Snippets](https://marketplace.visualstudio.com/items?itemName=burkeholland.simple-react-snippets): Small snippets for React (`imd` is a good one)
24+
- [Turbo Console Log](https://marketplace.visualstudio.com/items?itemName=ChakrounAnas.turbo-console-log): Make console.logging even faster
25+
26+
### My Custom Snippet for React Functional Components
27+
28+
Here's my custom snippet that I use. You'll see me type `rfc` to create a React component.
29+
30+
1. Open command palette
31+
2. Preferences: Configure User Snippets
32+
3. Add these two objects to the file
33+
34+
```json
35+
"React Functional Component": {
36+
"scope": "javascript,typescript",
37+
"prefix": "rfc",
38+
"body": [
39+
"import React from 'react';\n",
40+
"export default function ${1:name}(${2:props}) {",
41+
"\t${3:your stuffs}",
42+
"}"
43+
]
44+
},
45+
"Export Default Function": {
46+
"scope": "javascript,typescript",
47+
"prefix": "exdf",
48+
"body": [
49+
"export default function ${1:name}(${2:props}) {",
50+
"\t${3:your stuffs}",
51+
"}"
52+
]
53+
}
54+
```
55+
56+
## Themes
57+
58+
- [Material Icon Theme](https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme)
59+
- [Monokai Pro](https://monokai.pro/)
60+
61+
## Fonts
62+
63+
- [Cascadia Code](https://github.com/microsoft/cascadia-code) (Free): My current daily font
64+
- [Dank Mono](https://dank.sh/) (Paid)
65+
- [Operator Mono](https://www.typography.com/fonts/operator/styles) (Paid)
66+
- [Fira Code](https://github.com/tonsky/FiraCode) (Free)
67+
- Inconsolata (Free)
68+
69+
## Keyboard Shortcuts
70+
71+
- Show command palette: cmd shift p
72+
- Show and hide sidebar: cmd b
73+
- Show explorer: cmd shift e
74+
- Show terminal: ctrl `
75+
- Multiple cursors

browser-browser/.DS_Store

8 KB
Binary file not shown.

browser-browser/finished/.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*

browser-browser/finished/README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
### `yarn start`
8+
9+
Runs the app in the development mode.<br />
10+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11+
12+
The page will reload if you make edits.<br />
13+
You will also see any lint errors in the console.
14+
15+
### `yarn test`
16+
17+
Launches the test runner in the interactive watch mode.<br />
18+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19+
20+
### `yarn build`
21+
22+
Builds the app for production to the `build` folder.<br />
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.<br />
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+
### `yarn 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+
### `yarn 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

browser-browser/finished/package.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "finished",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^4.2.4",
7+
"@testing-library/react": "^9.3.2",
8+
"@testing-library/user-event": "^7.1.2",
9+
"react": "^16.13.1",
10+
"react-dom": "^16.13.0",
11+
"react-hook-form": "^5.1.1",
12+
"react-scripts": "3.4.0"
13+
},
14+
"scripts": {
15+
"start": "react-scripts start",
16+
"build": "react-scripts build",
17+
"test": "react-scripts test",
18+
"eject": "react-scripts eject"
19+
},
20+
"eslintConfig": {
21+
"extends": "react-app"
22+
},
23+
"browserslist": {
24+
"production": [
25+
">0.2%",
26+
"not dead",
27+
"not op_mini all"
28+
],
29+
"development": [
30+
"last 1 chrome version",
31+
"last 1 firefox version",
32+
"last 1 safari version"
33+
]
34+
}
35+
}
3.08 KB
Binary file not shown.
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
<title>React App</title>
28+
</head>
29+
<body>
30+
<noscript>You need to enable JavaScript to run this app.</noscript>
31+
<div id="root"></div>
32+
<!--
33+
This HTML file is a template.
34+
If you open it directly in the browser, you will see an empty page.
35+
36+
You can add webfonts, meta tags, or analytics to this file.
37+
The build step will place the bundled scripts into the <body> tag.
38+
39+
To begin the development, run `npm start` or `yarn start`.
40+
To create a production bundle, use `npm run build` or `yarn build`.
41+
-->
42+
</body>
43+
</html>
5.22 KB
Loading
9.44 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

0 commit comments

Comments
 (0)