Git Product home page Git Product logo

ipfs-prototype-2's Introduction

This is a Next.js app that allows users to store their data as a JSON object on IPFS (InterPlanetary File System).

Features

  • Input form for users to enter their name, amount of plastic collected, and location.
  • Uploads user data as a JSON object to IPFS.
  • Retrieves and displays user data using the CID (Content Identifier) provided by IPFS.

Prerequisites

  • Node.js (v14 or above)
  • IPFS daemon running locally (Make sure to start the IPFS daemon with ipfs daemon)

Getting Started

  1. Clone the repository:

  2. Install dependencies

    npm install
  3. Run IPFS daemon on port:5001

    ipfs daemon
  4. Make sure that your IPFS daemon's configuration file ( that you can find at "~/.ipfs/config" on your machine allows CORS requests from the NextJS app's domain. You can do this by adding the following lines to the "API" section of the config file:

    "API": {
    "HTTPHeaders": {
        "Access-Control-Allow-Origin": ["http://localhost:3000"]
      }
    }
  5. Start the development server:

    npm run dev

ipfs-prototype-2's People

Contributors

asante-ntiro 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.