Giter Site home page Giter Site logo

daopia-backend-raas's Introduction

Daopia Backend

Daopia Backend

Overview

Daopia Backend is a Node.js-based project, providing a REST API through Express.js. It serves as the backbone for the Daopia platform, handling file uploads, encryption, and interacting with the blockchain. The project is developed using the RAAS Starter Kit.

Key Features

Upload File Endpoint

The most crucial endpoint in this project is /uploadFile. After a user has made a contribution request through the frontend and the contract, they upload the file by calling this endpoint. During the file upload, the endpoint sets the access condition to the Daopia contract and encrypts the file accordingly. It also selects the on-chain standards set by the DAO as the deal details.

Event Listening and Job Registration

The API also listens to the events of the Deal Status contract deployed by Daopia. If a submit event occurs, or a DAO approves a proposal, it registers a job for it and performs the replication/renewal processes.

Setup and Deployment

Before deploying the project, ensure that all dependencies are installed, and the environment is correctly configured.

npm i
npm start

Contributing

Contributions are welcome! Feel free to submit issues, create pull requests, or propose new features to enhance the functionality of the Daopia Backend.

daopia-backend-raas's People

Contributors

grandzero 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.