Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add react-webpack example #36

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions react-webpack/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-react"]
}
4 changes: 4 additions & 0 deletions react-webpack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
.DS_Store
.env
src/.DS_Store
27 changes: 27 additions & 0 deletions react-webpack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# React + Webpack + (typescript)

This is a sample project that shows off the functionalities of the Swarm network, and serves as a simple example for developers looking to build a dApp that uses the decentralised Swarm storage with a vanilla ReactJs and Webpack setup.

## Dev Stacks

1. Node.js 16 or higher (LTS)
2. Webpack as the bundler
3. Modern React (functional components)
4. Latest @ethersphere/bee-js version

### Functionality

1. List available postage batches
2. Create new postage batch
3. Upload file(s)
4. Access to uploaded file

### Usage

To use the app, you should have a Bee node running either locally or remotely for which you're going to need the exposed url/port to connect to via the home page of the app.

Install dependencies, start the app and generate a static version of app

1. `npm install`
2. `npm start`
3. `npm run build`
Loading