Go to file
Chegele b8959e81bc Refactor - folders for each component 2023-07-25 13:51:09 -04:00
src Refactor - folders for each component 2023-07-25 13:51:09 -04:00
test initial commit 2023-06-20 16:52:43 -04:00
.eslintrc.js initial commit 2023-06-20 16:52:43 -04:00
.gitignore initial commit 2023-06-20 16:52:43 -04:00
.prettierrc initial commit 2023-06-20 16:52:43 -04:00
README.md Project documentation 2023-07-18 20:22:11 -04:00
nest-cli.json initial commit 2023-06-20 16:52:43 -04:00
package-lock.json install @types/jest jest ts-jest 2023-07-06 15:43:53 -04:00
package.json install @types/jest jest ts-jest 2023-07-06 15:43:53 -04:00
tsconfig.build.json initial commit 2023-06-20 16:52:43 -04:00
tsconfig.json initial commit 2023-06-20 16:52:43 -04:00

README.md

Reputation API

Introduction

Reputation API is an implementation of DGF (DAO Governance Framework) for Reputation. The purpose is to provide a backend API for integrating reputation-based mechanisms into the Vatem decentralized chat platform. This API enables rewarding reputation to members participating in chats and offers additional functionality based on the rewarded reputation such as content filtering, ranking, voting, and much more.

For more detailed information about DGF, please refer to the DOA Governance Framework Wiki.

Technology Stack

Node.js

Node.js is a JavaScript runtime environment built on Chrome's V8 JavaScript engine. It allows executing JavaScript code on the server-side, providing a powerful platform for building scalable network applications.

Node.js is chosen as the runtime environment for the Reputation API due to its scalability, performance, and extensive package ecosystem. It allows us to leverage JavaScript on the server-side, enabling seamless integration with various libraries, frameworks, and tools, and facilitating rapid development.

TypeScript

TypeScript is a superset of JavaScript that adds static typing to the language. It helps catch errors at compile-time, provides better tooling and autocompletion, and improves code maintainability and scalability.

TypeScript is chosen for the Reputation API due to its rich type system which enhances code readability and facilitates collaboration in open-source projects. TypeScript's extensive tooling provides autocompletion, code navigation, and refactoring support, boosting developer productivity. Additionally, TypeScript's abstractions make code easier to understand and work with as new contributors look to participate in the project.

NestJS

NestJS is a progressive Node.js framework for building efficient, scalable, and modular applications. It uses modern JavaScript and TypeScript features, follows architectural patterns such as MVC, and provides robust dependency injection, middleware, and module management.

NestJS is the chosen framework for building the Reputation API due to its modular architecture which allows consistency in the project, and TypeScript support for the reasons already listed above. We feel this framework provides the structure necessary for an easily scalable and ever-adapting project as it matures through many prototyping iterations.

GraphQL

GraphQL is a query language for APIs and a runtime for executing those queries with existing data. It offers a more efficient and flexible approach to data fetching compared to traditional REST APIs, allowing clients to request only the data they need and enabling powerful data manipulation and composition.

GraphQL is used as the query language for the Reputation API due to its flexibility, efficiency, and ability to reduce over-fetching and under-fetching of data, providing fine-grained control and improved network performance while working with Graph-based reputational data.

Neo4j

Neo4j is a popular graph database that stores data in nodes and relationships, enabling efficient handling of highly connected data. It provides powerful querying capabilities and scalability, making it well-suited for storing and querying posts, citations, members, and their reputation from the backend.

Neo4j is the graph database of choice for the Reputation API, providing a scalable and performant solution for storing and querying the highly connected data, making it suitable for representing chat/post relationships and complex connections in this reputation-based system.

Project Status

The project is currently a work in progress, with the primary focus on designing the core Graph-based components to store posts, citations, members, and their reputation. Once the core reputation service is complete, the next phase will involve creating the API endpoints.

Endpoints

TODO

Examples

TODO

Installations

TODO