Skip to content

Commit

Permalink
init react app with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan0905 committed Nov 24, 2022
1 parent db04c1e commit 2e0ac06
Show file tree
Hide file tree
Showing 3,049 changed files with 672,671 additions and 1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:19

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . ./

EXPOSE 3000

CMD ["npm", "run", "dev"]
60 changes: 59 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,59 @@
# hackathon_merge
<div align="center">

<img src="readme/payconsent.png" alt="logo" width="200" height="auto" />
<h1>PayConsent 🤝</h1>
<p>A B2B payement protocol, secured using smartcontract</p>

</div>

## ❗ Problem
#### What problem does your project solve?
#### How does it fit into the theme "Building a Decentralized Future"?

## ✅ Solution
#### How did you resolve this issue?
→ We decided to solve this issue, by creating an easy to use and decentralized payement protocol service that protect the 2 users during transaction. [...]
#### What technologies did you use?
TailwindCSS and ReactJS for frontend and backend
Starton API for the smart contracts managements

#### What was your biggest technical challenge and how does your solution solve it?
?

## ⚙️ How to run the project ?

1. Clone the repository:
`git clone https://github.com/ethan0905/hackathon.git`

2. Run at the root of repository, the following bash commands:
`docker-compose up`
`docker build -t react .`
`docker run -p 3000:3000 -d react`

3. Then go to the following url on internet:
`localhost:3000`

## Process

- Docker
- Metamask connection
- Figma
- Smartcontract
- npm install react-ipfs-uploader
- npm install ipfs -g (for ipfs)

## 🧭 Roadmap

- [x] Docker installation
- [x] Metamask wallet connection
- [ ] Smart contract
- [x] Write our own contract
- [ ] Use of Starton API to create Smart contract from bytecode
- [ ] Use of Starton API to calls Smart contract located at {address} on {network}
- [ ] Deletes Smart contract located at {address} on {network}
- [x] Add image uploader on IPFS
- [ ] Form:
- [ ] Interaction with Smart contract at {address} on {network}

## ⚠️ License
Distributed under the MIT License. See `LICENSE.txt` for more information.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3"
services:
payconsent:
build: "./"
ports:
- "3000:3000"
volumes:
- "./:/app"
- "/app/node_modules"
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Binary file added node_modules/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/autoprefixer

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/browserslist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/browserslist-lint

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/cssesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/detective

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/esbuild

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/jsesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/loose-envify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/parser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/resolve

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/rollup

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/tailwind

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/tailwindcss

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/vite

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2e0ac06

Please sign in to comment.