Bulwark is a blockchain based Agricultural Insurance dApp. (de-centralized application)
This repo is a server for the Bulwark web application.
Use it to get the bearer token and authenticate all the other calls.
[POST] /user/login/
{"email":<Registered Email>, "password":<Password>}
[GET] /bulwark/isInsured/
[GET] /bulwark/payPremium/
[GET] /bulwark/claim/
[GET] /bulwark/getTransactions/
[GET] /bulwark/getBlockchain/
[GET] /bulwark/weather/
- 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.
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.