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

Build an example project using React and Webpack #31

Open
Cafe137 opened this issue Dec 13, 2023 · 0 comments
Open

Build an example project using React and Webpack #31

Cafe137 opened this issue Dec 13, 2023 · 0 comments
Labels

Comments

@Cafe137
Copy link
Collaborator

Cafe137 commented Dec 13, 2023

Description

Your task is creating 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.

This project is intended to be a front-end project that uses React and Webpack.

Requirements

Stack

  • Use node.js 16 or higher (LTS)
  • Use Webpack as the bundler
  • Use modern React (functional components)
  • Use latest @ethersphere/bee-js version
  • The project should start with npm install && npm start
  • The project should build a static site with npm run build

Functionality

  • List available postage batches (getAllPostageBatch)
  • Create new postage batch (createPostageBatch)
  • Upload a single file (uploadFile or uploadFiles)
  • Link to the uploaded file (http://localhost:1633/bzz/<hash>/)

Code quality

  • Code should be simple to follow and reason about
  • Use a formatter (e.g. Prettier) to make code style consistent
  • Use descriptive names, prefer easily readable code over comments
  • Extract utilities and helpers to a separate file, keep the main logic short
  • Compose application logic out of smaller building blocks, e.g. functions

Handover

Fork this repository, and place your submission in a new react-webpack directory. Open a pull request from your repository to the official repository.

Documentation

@bee-runner bee-runner bot added the issue label Dec 13, 2023
This was referenced Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant