Skip to content

Commit 1212ea9

Browse files
author
Bart Hazen
committed
First set up with React.
0 parents  commit 1212ea9

File tree

19 files changed

+345
-0
lines changed

19 files changed

+345
-0
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
package-lock.json
8+
9+
# testing
10+
coverage/
11+
12+
# production
13+
build/
14+
15+
# misc
16+
.DS_Store
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
database-debug.log
26+
firebase-debug.log
27+
28+
.idea/

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Use latest Node LTS (Erbium)
2+
FROM node:erbium
3+
4+
# Install Firebase CLI
5+
RUN npm install -g firebase-tools
6+
7+
ENTRYPOINT ["/usr/local/bin/firebase"]

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# Python Create
3+
4+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
5+
6+
## Usage
7+
8+
```bash
9+
$ npm run build # Build source files
10+
$ npm run start # Develop mode
11+
$ firebase emulators:start # Emulate Firebase components locally
12+
```

firebase.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"database": {
3+
"rules": "database.rules.json"
4+
},
5+
"hosting": {
6+
"public": "build",
7+
"ignore": [
8+
"firebase.json",
9+
"**/.*",
10+
"**/node_modules/**"
11+
],
12+
"rewrites": [
13+
{
14+
"source": "**",
15+
"destination": "/index.html"
16+
}
17+
]
18+
},
19+
"storage": {
20+
"rules": "storage.rules"
21+
},
22+
"emulators": {
23+
"functions": {
24+
"port": 5001
25+
},
26+
"database": {
27+
"port": 9000
28+
},
29+
"hosting": {
30+
"port": 5000
31+
}
32+
}
33+
}

package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "python-create",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@material-ui/core": "^4.9.8",
7+
"@material-ui/icons": "^4.9.1",
8+
"@testing-library/jest-dom": "^4.2.4",
9+
"@testing-library/react": "^9.5.0",
10+
"@testing-library/user-event": "^7.2.1",
11+
"history": "^4.10.1",
12+
"markdown-to-jsx": "^6.11.0",
13+
"node-sass": "^4.14.1",
14+
"prop-types": "^15.7.2",
15+
"react": "^16.13.1",
16+
"react-dom": "^16.13.1",
17+
"react-router-dom": "^5.1.2",
18+
"react-scripts": "3.4.1",
19+
"typeface-roboto": "0.0.75"
20+
},
21+
"scripts": {
22+
"start": "react-scripts start",
23+
"build": "react-scripts build",
24+
"test": "react-scripts test",
25+
"eject": "react-scripts eject"
26+
},
27+
"eslintConfig": {
28+
"extends": "react-app"
29+
},
30+
"browserslist": {
31+
"production": [
32+
">0.2%",
33+
"not dead",
34+
"not op_mini all"
35+
],
36+
"development": [
37+
"last 1 chrome version",
38+
"last 1 firefox version",
39+
"last 1 safari version"
40+
]
41+
}
42+
}

public/index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<meta name="theme-color" content="#000000">
8+
<!--
9+
manifest.json provides metadata used when your web app is added to the
10+
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
11+
-->
12+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
13+
<!-- <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> -->
14+
<!--
15+
Notice the use of %PUBLIC_URL% in the tags above.
16+
It will be replaced with the URL of the `public` folder during the build.
17+
Only files inside the `public` folder can be referenced from the HTML.
18+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
19+
work correctly both with client-side routing and a non-root public URL.
20+
Learn how to configure a non-root public URL by running `npm run build`.
21+
-->
22+
<title>Python Create</title>
23+
</head>
24+
25+
<body>
26+
<noscript>
27+
You need to enable JavaScript to run this app.
28+
</noscript>
29+
<div id="root"></div>
30+
</body>
31+
32+
</html>

src/App.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import { Router } from 'react-router-dom';
3+
4+
import Routes from './routes';
5+
6+
import { createBrowserHistory } from 'history';
7+
8+
import './App.scss';
9+
10+
const browserHistory = createBrowserHistory();
11+
12+
function App() {
13+
return (
14+
<Router history={browserHistory}>
15+
<Routes />
16+
</Router>
17+
);
18+
}
19+
20+
export default App;

src/App.scss

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@import 'typeface-roboto';
2+
3+
.App {
4+
text-align: center;
5+
}
6+
7+
.App-logo {
8+
height: 40vmin;
9+
pointer-events: none;
10+
}
11+
12+
@media (prefers-reduced-motion: no-preference) {
13+
.App-logo {
14+
animation: App-logo-spin infinite 20s linear;
15+
}
16+
}
17+
18+
.App-header {
19+
background-color: #282c34;
20+
min-height: 100vh;
21+
display: flex;
22+
flex-direction: column;
23+
align-items: center;
24+
justify-content: center;
25+
font-size: calc(10px + 2vmin);
26+
color: white;
27+
}
28+
29+
.App-link {
30+
color: #61dafb;
31+
}
32+
33+
@keyframes App-logo-spin {
34+
from {
35+
transform: rotate(0deg);
36+
}
37+
to {
38+
transform: rotate(360deg);
39+
}
40+
}

src/components/Header/index.js

Whitespace-only changes.

src/index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
4+
import './index.scss';
5+
import App from './App';
6+
7+
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
8+
9+
const theme = createMuiTheme({
10+
palette: {
11+
type: 'dark',
12+
},
13+
});
14+
15+
ReactDOM.render(
16+
<MuiThemeProvider theme={theme}>
17+
<React.StrictMode>
18+
<App />
19+
</React.StrictMode>
20+
</MuiThemeProvider>,
21+
document.getElementById('root')
22+
);

0 commit comments

Comments
 (0)