Skip to content

Commit 0c8bc1b

Browse files
committed
🚀 🚀 🚀 Initial commit. Created repo, installed necessary libraries. Created redux store, reducers and actions for charts and news.
1 parent 9f8bfd8 commit 0c8bc1b

File tree

18 files changed

+15982
-91
lines changed

18 files changed

+15982
-91
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
# misc
1515
.DS_Store
16+
.env
1617
.env.local
1718
.env.development.local
1819
.env.test.local

package-lock.json

Lines changed: 15718 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 47 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,49 @@
11
{
2-
"name": "react-reactmarkets.v2",
3-
"version": "0.1.0",
4-
"private": true,
5-
"dependencies": {
6-
"@testing-library/jest-dom": "^5.11.4",
7-
"@testing-library/react": "^11.1.0",
8-
"@testing-library/user-event": "^12.1.10",
9-
"react": "^17.0.1",
10-
"react-dom": "^17.0.1",
11-
"react-scripts": "4.0.0",
12-
"web-vitals": "^0.2.4"
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": [
22-
"react-app",
23-
"react-app/jest"
24-
]
25-
},
26-
"browserslist": {
27-
"production": [
28-
">0.2%",
29-
"not dead",
30-
"not op_mini all"
31-
],
32-
"development": [
33-
"last 1 chrome version",
34-
"last 1 firefox version",
35-
"last 1 safari version"
36-
]
37-
}
2+
"name": "react-reactmarkets.v2",
3+
"version": "0.1.0",
4+
"author": "Can Ural",
5+
"license": "MIT",
6+
"private": true,
7+
"dependencies": {
8+
"@testing-library/jest-dom": "^5.11.4",
9+
"@testing-library/react": "^11.1.0",
10+
"@testing-library/user-event": "^12.1.10",
11+
"axios": "^0.21.0",
12+
"normalize.css": "^8.0.1",
13+
"react": "^17.0.1",
14+
"react-dom": "^17.0.1",
15+
"react-redux": "^7.2.2",
16+
"react-router": "^5.2.0",
17+
"react-router-dom": "^5.2.0",
18+
"react-scripts": "4.0.0",
19+
"redux": "^4.0.5",
20+
"redux-logger": "^3.0.6",
21+
"redux-thunk": "^2.3.0",
22+
"styled-components": "^5.2.1",
23+
"web-vitals": "^0.2.4"
24+
},
25+
"scripts": {
26+
"start": "react-scripts start",
27+
"build": "react-scripts build",
28+
"test": "react-scripts test",
29+
"eject": "react-scripts eject"
30+
},
31+
"eslintConfig": {
32+
"extends": [
33+
"react-app",
34+
"react-app/jest"
35+
]
36+
},
37+
"browserslist": {
38+
"production": [
39+
">0.2%",
40+
"not dead",
41+
"not op_mini all"
42+
],
43+
"development": [
44+
"last 1 chrome version",
45+
"last 1 firefox version",
46+
"last 1 safari version"
47+
]
48+
}
3849
}

public/index.html

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
4+
<head>
45
<meta charset="utf-8" />
56
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
67
<meta name="viewport" content="width=device-width, initial-scale=1" />
78
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-react-app"
11-
/>
9+
<meta name="description" content="Full stack finance app made with MERN stack." />
1210
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1311
<!--
1412
manifest.json provides metadata used when your web app is installed on a
@@ -24,20 +22,14 @@
2422
work correctly both with client-side routing and a non-root public URL.
2523
Learn how to configure a non-root public URL by running `npm run build`.
2624
-->
27-
<title>React App</title>
28-
</head>
29-
<body>
25+
<link rel="preconnect" href="https://fonts.gstatic.com" />
26+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Oswald:wght@500&display=swap" rel="stylesheet" />
27+
<title>ReactMarkets.v2</title>
28+
</head>
29+
30+
<body>
3031
<noscript>You need to enable JavaScript to run this app.</noscript>
3132
<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.
33+
</body>
3534

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>
35+
</html>

src/App.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/App.jsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { useEffect } from 'react';
2+
import { useSelector, useDispatch } from 'react-redux';
3+
4+
import Nav from './components/nav/Nav';
5+
6+
import { fetchChart } from './redux/actions/chart';
7+
import { fetchTopStories } from './redux/actions/news';
8+
9+
import './App.css';
10+
11+
const App = () => {
12+
// const { chart } = useSelector((chart) => chart.chart);
13+
// const { loading, news, error } = useSelector((news) => news.news);
14+
// const dispatch = useDispatch();
15+
16+
// useEffect(() => {
17+
// dispatch(fetchChart());
18+
// dispatch(fetchTopStories('business'));
19+
// }, [dispatch]);
20+
21+
return (
22+
<div className="App">
23+
<Nav />
24+
</div>
25+
);
26+
};
27+
28+
export default App;

src/components/nav/Nav.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Search from '../search/Search';
2+
3+
import './Nav.styles';
4+
5+
const Nav = () => {
6+
return (
7+
<>
8+
<Search />
9+
</> //
10+
);
11+
};
12+
13+
export default Nav;

src/components/nav/Nav.styles.js

Whitespace-only changes.

src/components/search/Search.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import './Search.styles';
2+
3+
const Search = () => {
4+
return (
5+
<>
6+
<h1>Search</h1>
7+
</> //
8+
);
9+
};
10+
11+
export default Search;

src/components/search/Search.styles.js

Whitespace-only changes.

0 commit comments

Comments
 (0)