基于区块链的毕业设计Description – 说明

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Description – 说明 是一篇很好的国外资料

Description

This is the repository for SIH 2020 project by team tollblocks, which is a web application for effective toll processing and management, using a hybrid blockchain based stack to process toll payments and simulate a road contract, preventing corruption and increasing transparency, throughout the stakeholder chain from vehicle owner to government.

Contributors

Angular development

  • Ninad Manjaramkar
  • Snehal Naikare
  • Vineet Shinde

Django development

  • Rohit Nawale
  • Kaustubh Patil
  • Disha Shinde

Run Locally

Pre requisites

  • node js & npm [LTS preferably].

    For windows, the GUI based installer works well.

    For linux, install NVM to manage nodejs installations easily.

    Node.js

    nvm-sh/nvm

  • Angular CLI

    npm install -g @angular/cli
  • Python packages:

    pip install Django==2.2
    pip install djangorestframework
    pip install django-cors-headers
    pip install pyjwt.
    pip install web3
  • MySQL server [workbench is optional, but recommended]

    • ubuntu

    How To Install MySQL on Ubuntu 18.04 | DigitalOcean

    • windows

    MySQL :: MySQL and Windows :: 1 Installing MySQL on Microsoft Windows

  • Postman [optional but recommended]

Postman | The Collaboration Platform for API Development

Frontend

install angular CLI using npm.

npm install -g @angular/cli

Clone the repository at a convenient location.

Open cmd/bash and navigate to tollblocks-webapp/client/ folder inside cloned repository.

Perform npm install.

npm install

run the command npm start to start the angular server.

npm start

Backend

[Optional] Create a virtual environment, and activate it.

install prerequisite packages using pip. (refer prerequisites)

Clone the repository at a convenient location.

Open cmd/bash and navigate to backend_root folder inside cloned repository.

Delete migrations folder if exists.

Before proceeding to next step, ensure all database steps are done.

make migrations

migrate

runserver

python manage.py makemigrations testing python manage.py migrate python manage.py runserver 8080

Database

create a database(schema) for toll_blocks.

create a new user with name and credentials.

grant privileges to user created.

Flush.

CREATE DATABASE toll_blocks; CREATE USER 'dbadmin' identified by ‘password’; GRANT ALL ON toll_blocks.* to 'dbadmin'@'%'; FLUSH PRIVILEGES;

Create a ministry user

run postman and send a request to the endpoint localhost:8080/test/api/addministry with payload

{     name: "some name",     email: "ministry",     password: "some password",      } 

描述

这是SIH 2020项目团队收费块的存储库,这是一个用于有效处理和管理收费的web应用程序,使用基于混合区块链blockchain的堆栈来处理通行费支付和模拟道路合同,防止腐败并提高透明度,从车主到政府的整个利益相关者链。

贡献者

角度开发

  • Ninad Manjaramkar
  • Snehal Naikare
  • Vineet Shinde

本地运行

  • Rohit Nawale
  • Kaustubh Patil
  • 迪沙Shinde

先决条件

后端

  • 节点js&npm(最好)。对于windows,基于GUI的安装程序运行良好。对于linux,安装NVM来轻松管理nodejs安装。节点.jsnvm sh/nvm
  • Angular CLI npm install-g@Angular/CLI
  • Python包:pip install Django==2.2 pip install Django cors headers pip install pyjwt。pip install web3
  • MySQL server[工作台是可选的,但推荐使用]ubuntu如何在ubuntu 18.04上安装MySQL | DigitalOcean windows MySQL::MySQL和windows::1在Microsoft windows上安装MySQL
  • Postman[可选但推荐]

Postman | API开发的协作平台

数据库

使用npm安装angular CLI。

npm install -g @angular/cli

在方便的位置克隆存储库。

打开cmd/bash并导航到克隆存储库中的tollblocks webapp/client/folder。

执行npm安装。

npm install

运行命令npm start以启动角度服务器。

npm start

创建部门用户

[可选]创建一个虚拟环境,并将其激活。

使用pip安装必备软件包。(请参阅先决条件)

在方便的位置克隆存储库。

打开cmd/bash并导航到克隆存储库中的后端根文件夹。

删除迁移文件夹(如果存在)。

在继续下一步之前,请确保已完成所有数据库步骤。

进行迁移

迁移

runserver

python manage.py makemigrations testing python manage.py migrate python manage.py runserver 8080

Database

为收费区块创建数据库(架构)。

使用名称和凭据创建新用户。

向创建的用户授予权限。

冲洗。

CREATE DATABASE toll_blocks; CREATE USER 'dbadmin' identified by ‘password’; GRANT ALL ON toll_blocks.* to 'dbadmin'@'%'; FLUSH PRIVILEGES;

Create a ministry user

运行postman并向端点发送请求本地主机:8080/test/api/addministry使用有效负载

{     name: "some name",     email: "ministry",     password: "some password",      } 

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/16650.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Description – 说明

提供最优质的资源集合

立即查看 了解详情