Git Product home page Git Product logo

dao-server's Introduction

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

PheonixDAO-Server

Description

Pheonix-DAO Server repository. The Application allows users to authenticate themself through MetaMask and Numio. Users can then add proposals, vote on proposals, stake on proposals and view updates. Admin approve the proposals so the users can vote on them. If a proposal is accepted after clearing the voting stage, then user can mark the milestones of proposal as completed and admin reviews and verifies it to issue funds.

About App

PhoenixDAO is a truly decentralized, open-source project that covers identity, payments, tokenization, authentication, and storage, alongside a dApp Store which sits at the heart of the Phoenix ecosystem. A core part of the PhoenixDAO strategy is to actively on-board both individual developers and enterprise level corporations to build using the protocols to power their products. This will enhance decentralization, token utility and the overall ecosystem.

  • Functions/Modules
    • Admin
    • Auth
    • User
    • Proposal
    • Stake
    • Transaction
    • Cron

Few keys that needed to be updated. Create .env file and update things that are mentioned below

  • Updates Required
    • DATABASE_URL
    • private_key
    • SECRET_KEY
    • Attributes_DOC_ID
    • app_secret

Create these variables in your ".env" file and assign your values to these variables.

Integrated Stack

  • Web3
  • Smartcontract
  • MetaMask
  • Numio

File Structure

app    
├── src  
│     └── main.ts  
│     └── app.controller.spec.ts  
│     └── app.controller.ts  
│     └── app.module.ts    
│     └── app.service.ts     
│     └── Admin    
│     |   ├── admin.service.ts    
│     |   ├── admin.controller.ts    
│     |   ├── admin.model.ts    
│     |   └── admin.module.ts
│     └── User 
│     |   ├── user.service.ts    
│     |   ├── user.controller.ts    
│     |   ├── user.model.ts    
│     |   └── user.module.ts
│     └── Auth    
│     |   ├── auth.service.ts    
│     |   ├── auth.controller.ts    
│     |   ├── auth.model.ts    
│     |   └── auth.module.ts
│     └── Proposal     
│     |   ├── proposal.service.ts    
│     |   ├── proposal.controller.ts    
│     |   ├── proposal.model.ts    
│     |   └── proposal.module.ts
│     └── Stake    
│     |   ├── stake.service.ts    
│     |   ├── stake.controller.ts    
│     |   ├── stake.model.ts    
│     |   └── stake.module.ts
│     └── Transaction    
│     |   ├── transaction.service.ts    
│     |   ├── transaction.controller.ts    
│     |   ├── transaction.model.ts    
│     |   └── transaction.module.ts
│     └── cron         
│         ├── cron.service.ts    
│         └── cron.module.ts   
└── gitignore  
└── package.json  
└── package-lock.json  
└── Readme.md  
└── nodeModules   
└── loggerMiddleware.ts
└── main.ts
└── .env  

App Link

Pheonix-DAO Server

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Nest is MIT licensed.

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.