Initial commit

This commit is contained in:
Ben Elferink
2020-12-21 23:03:50 +02:00
commit ad0098bc7c
14 changed files with 155 additions and 0 deletions

3
client/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/node_modules
.DS_Store
.eslintcache

28
client/package.json Normal file
View File

@@ -0,0 +1,28 @@
{
"name": "client",
"version": "0.1.0",
"main": "index.js",
"scripts": {
"start": "react-scripts start"
},
"author": "Ben Elferink",
"license": "ISC",
"dependencies": {
"axios": "^0.21.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "^4.0.1"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

12
client/public/index.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MERN_STACK</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" />
</body>
</html>

7
client/src/App.js Normal file
View File

@@ -0,0 +1,7 @@
import React from 'react';
function App() {
return <div>Hello World - React.js</div>;
}
export default App;

6
client/src/api/index.js Normal file
View File

@@ -0,0 +1,6 @@
import axios from 'axios';
const url = 'http://localhost:8080/';
// export const getSomething = () => axios.get(url + 'path');
// export const postSometing = (form) => axios.post(url + 'path', form);

10
client/src/index.js Normal file
View File

@@ -0,0 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);

View File

@@ -0,0 +1,9 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
}