Browse Source

Add forntend boilerplate

pull/9/head
garritfra 5 years ago
parent
commit
86594c9a7a
  1. 3
      frontend/.gitignore
  2. 6747
      frontend/package-lock.json
  3. 18
      frontend/package.json
  4. 16
      frontend/public/index.html
  5. 4
      frontend/src/index.js

3
frontend/.gitignore vendored

@ -0,0 +1,3 @@
node_modules/
.cache/
dist/

6747
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

18
frontend/package.json

@ -0,0 +1,18 @@
{
"name": "ditto-frontend",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"start": "parcel public/index.html"
},
"author": "garritfra",
"license": "ISC",
"dependencies": {
"body-parser": "^1.18.3",
"express": "^4.16.4",
"parcel-bundler": "^1.11.0",
"react": "^16.8.3",
"react-dom": "^16.8.3"
}
}

16
frontend/public/index.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ditto Blockchain</title>
</head>
<body>
<div id="root"></div>
<script src="../dist/index.js"></script>
</body>
</html>

4
frontend/src/index.js

@ -0,0 +1,4 @@
import React from "react"
import ReactDOM from "react-dom";
ReactDOM.render(<h1>Hello World</h1>, document.getElementById("root"))
Loading…
Cancel
Save