README.md
backend
    src
        as_types.d.ts
        singleton
            __tests__
                as-pect.d.ts
                index.unit.spec.ts
            asconfig.json
            assembly
                index.ts
                model.ts
        tsconfig.json
        utils.ts
frontend
    build
        module-entry.js
        utils.js
        webpack.base.config.js
        webpack.config.js
        webpack.dev.config.js
        webpack.prod.config.js
    index.html
    package-lock.json
    package.json
    src
        index.js
        modules
            confirm
                index.html
                index.js
                pages
                    home.js
        pages
            NearConnection.js
            custom.css
            home.css
            home.js
            subpages
                AddQuestion.js
                AnswerQuestion.js
                AnsweredQuestion.js
                AskedQuestion.js
                HeadBanner.js
                QuestionDetail.js
                UnAnsweredQuestion.js

# value QA
- Near Certified Developer Course Demo
- Users can ask questions, designate other users to answer questions, and give appropriate rewards
- Only designated users can answer questions and receive rewards
- The answer content is only visible to the questioner and the respondent

# code description
```
- backend/src/singleton
 - model.ts 
 - index.ts
```

```
- frontend/src
 - modules/confirm/pages
  - home.js: confirm page for deposit
 - pages
  - NearConnection.js: near contract interface
  - home.js: main page
  - subpages
    - HeadBanner.js: head banner
    - AskedQuestion.js: user asked question list
    - UnAnsweredQuestion.js: user unanswered question list
    - AnsweredQuestion.js: user answered question list
    - AddQuestion.js: question add page
    - AnswerQuestion.js: question answer page
    - QuestionDetail.js: question detail page
```

# deploy contract
```bash
yarn build:release
near deploy {contract.address} build/release/singleton.wasm
```

# frontend start
```bash
npm run dev
```
