GithubHelp home page GithubHelp logo

frontend's Introduction

github: https://github.com/hamster-shared/frontend

hamster is a blockchain-based blockchain infrastructure service. Any computing device can easily access the Hamster network.

Project Guidelines

1. Basic Introduction

1.1 Project Introduction

frontend is the web UI of hamster-shared,it is based on vue and uses Ant Design Vue UI framework, it can interact with hamster chain nodes.

1.2 Contributing Guide

Hi! Thank you for choosing Hamster.

Hamster is a blockchain that providers infrastructure service.

We are excited that you are interested in contributing to Hamster. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.

1.2.1 Issue Guidelines

  • Issues are exclusively for bug reports, feature requests and design-related topics. Other questions may be closed directly.

  • Before submitting an issue, please check if similar problems have already been issued.

1.2.2 Pull Request Guidelines

  • Fork this repository to your own account. Do not create branches here.

  • Commit info should be formatted as [File Name]: Info about commit. (e.g. README.md: Fix xxx bug)

  • If your PR fixes a bug, please provide a description about the related bug.

  • Merging a PR takes two maintainers: one approves the changes after reviewing, and then the other reviews and merges.

1.3 Version list

  • main: 1.0.0 code, for prod
  • develop: 2.0.0 dev code, for test

2. Getting started

- node version    14.16.1
- npm  version    6.14.12
- yarn version >= 1.22.10 

2.1 Project setup and startup

With yarn or npm

  • Install dependencies
yarn install
      or 
npm install
  • Compiles and hot-reloads for development
yarn serve
  or 
npm run serve  
  • Compiles and minifies for production
yarn run build
    or
npm run build    
  • Lints and fixes files
yarn run lint
  or
npm run lint  
  • Customize Vue configuration

See Configuration Reference.

3. Technical selection

4.Project Structure

├── babel.config.js                                            # babel-loader configuration
├── default.conf                                               # nginx configuration file
├── Dockerfile                                                 # Dockerfile configuration file
├── LICENSE                                                    # Apache License
├── package.json                                               # package.json dependencies
├── public                                                     # static resources
│   ├── favicon.ico                                      # favicon icon
│   ├── images                                           # images
│   │   ├── logo-ct-black.png                      # logo icon on black background
│   │   └── logo-ct-white.png                      # logo icon on white background
│   └── index.html                                       # html template
├── src                                                        # source code
│   ├── api                                              # all requests
│   │   ├── index.js                               # polkadot api
│   │   └── types.js                               # polkadot types
│   ├── App.vue                                          # entry page
│   ├── common                                           # Internationalized language configuration
│   ├── components                                       # global component
│   ├── layouts                                          # global layout
│   ├── main.js                                          # entry file
│   ├── plugins                                          # plugins
│   ├── router                                           # routing configuration
│   ├── scss                                             # global style
│   ├── store                                            # global vuex store
│   ├── utils                                            # global method
│   └── views                                            # all pages
└── vue.config.js                                              # vue-cli configuration

5.Functions

frontend mainly includes the following functions:

 - Connect polkat wallet
 
 - Computing resource market
    - List of resources available for purchase
    - Conditional query resource information
    - Buy resources
    
 - My shared resources
    - List of resources I rent
    - Conditional query my rental resource information list
    - Modify the unit price of rental resources
    - Increase rental time
    - Rent again
    - Pledge amount
    - Get back the pledge amount
    - Pledge information display
    - List of resource agreements I rent
    - Receive benefits
 
 - Resources I use
    - List of resources I purchased
    - Purchase Resource Renewal
    - Receive penalty amount
    - Order List
    - Cancel order

6. Knowledge base

6.1 Team blog

https://github.com/hamster-shared

7. Contributors

Thank you for considering your contribution to hamster!

8. Commercial considerations

If you use this project for commercial purposes, please comply with the Apache2.0 agreement and retain the author's technical support statement.

frontend's People

Contributors

jian-guo-s avatar ltmuyuan avatar lwwl-123 avatar mohaijiang avatar

Stargazers

Linda.zx 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.