Skip to content

The Node Server for Agricultural Insurance system - Bulwark.

Notifications You must be signed in to change notification settings

vivek32ta/bulwark-backend

Repository files navigation

Bulwark Server

Bulwark is a blockchain based Agricultural Insurance dApp. (de-centralized application)


This repo is a server for the Bulwark web application.

REST Enpoints

Authentication:

Use it to get the bearer token and authenticate all the other calls.

[POST] /user/login/

{"email":<Registered Email>, "password":<Password>}
Check Insurance status:

[GET] /bulwark/isInsured/

Pay Premium:

[GET] /bulwark/payPremium/

Claim Policy:

[GET] /bulwark/claim/

Retrieving all transactions for the account:

[GET] /bulwark/getTransactions/

Retrieving complete blockchain:

[GET] /bulwark/getBlockchain/

Get Current Weather:

[GET] /bulwark/weather/


Setup

Docker
  • Install Docker for your system.
  • Run docker-compose up

For WebApp: Setup bulwark-frontend. For API Endpoints: Open a REST Client and give it a spin.

Linux

Use the package manager npm to install all packages and start the blockchain.

npm install

npm run bulwark:start

The server will run at port 5000. Give it a spin using a REST Client.


Developers

About

The Node Server for Agricultural Insurance system - Bulwark.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published