New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jianfson/blockchain-iot-demo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jianfson/blockchain-iot-demo

  • v0.0.0-20200923123103-289c0392f3f0
  • Source
  • Go
  • Socket score

Version published
Created
Source

BlockChain-IOT-demo

TensorFlow

The demo code for BlockChain-IOT project based on GoWeb

1. How to build

2. How to setup

2.1 Database

Please make sure you installed MySQL 8.0(recommended), then you need to cover const userName & password setting in "web/dao/mysql.go", and the const port if you ever changed your original database setting.

3. How to test:

3.1 Login and Sign up

To open the website, input "localhost:9000" in address filed.
To login, you to choose one account down blow(We prepared five accounts for test):

RoleUsernamePassword
SuperAdminsa1
Admina11
Useru11
Useru21
Staffs11

P.S. login is unnecessary for User, anyone could query tea source anonymously anytime

3.2 Roles

We designed 4 roles for this demo:

  • SuperAdmin: Admin management(appoint/dismiss), Data Management(Modify), User Management(delete), profile, Trace the tea source
  • Admin: Data Check(do nothing), User Management(delete), Staff Management(appoint/dismiss), profile, Trace the tea source
  • User: Trace the tea source, look up search history, profile
  • Staff: Trace the tea source, Upload new record, Modify records
3.3 Account Status

User Management is provided for SuperAdmin and Admin to check if there was any user with abnormal behavior, like unreasonable number of queries, to take action.

FAQs

Package last updated on 23 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc