Giter Site home page Giter Site logo

products-marketplace-app's Introduction

Marketplace React Application

React Web3.js Tailwind CSS Jest Express.js

Next Marketplace App. This project demonstrates the integration of a React.js frontend with a backend API to manage a list of marketplace items, and showcases blockchain integration using Web3.js.

Table of Contents

Introduction

This application is designed to fetch and display a list of products from a backend API and provide a form to add new items to the marketplace. Additionally, it integrates with a blockchain (Ethereum testnet) to display the current blockchain network status and the latest block number.

Features

  • Fetch and display products from the backend API.
  • Add new items to the marketplace through a form.
  • Display the current blockchain network status (connected/disconnected).
  • Show the latest Ethereum block number with regular updates.

Technologies Used

Installation

To get a local copy up and running, follow these steps:

  1. Clone the repository

    git clone https://github.com/AllanTAP/products-marketplace-app.git
    cd products-marketplace-app
  2. Install dependencies

    yarn
  3. Set up the backend API

    Ensure you have the backend API running on http://localhost:3001.

  4. Start the development server

    yarn dev

Usage

Once the development server is running, you can access the application at http://localhost:3000. The main functionalities include:

  • Viewing Products: The products fetched from the backend API will be displayed on the main page.
  • Adding a Product: Click the "+" button to display the form, fill in the details, and submit to add a new item to the marketplace.
  • Blockchain Status: The current connection status to the blockchain and the latest block number are displayed.

Project Structure

├── public
│   ├── index.html
│   └── ...
├── src
│   ├── components
│   │   ├── AddProduct.tsx
│   │   ├── ProductsList.tsx
│   │   ├── Web3Connection.tsx
│   │   └── ...
│   ├── App.tsx
│   ├── index.tsx
│   ├── types
│   │   └── product.ts
│   ├── lib
│   │   └── web3.ts
│   └── ...
├── README.md
├── package.json
└── ...

For any additional questions or feedback, please contact your email.


Made by AllanTAP

products-marketplace-app's People

Contributors

allantap avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.