Giter VIP home page Giter VIP logo

supply-chain-office-integration's Introduction

Running in localhost

Before running for the first time, generate a certificate and a key with the script borrowed from here. Put the server.crt and the server.key file into the .\cert folder.

On Linux, Mac and Git Bash for Windows

$ bash ss_certgen.sh

On Cygwin for Windows

$ bash -o igncr ss_certgen.sh

To install dependencies:

$ npm install

To start the server:

$ npm start

Open Web browser https://localhost:8443/ and make the certificate trusted by adding it to the trusted root authorities. Also enable localhost deguging on Edge:

CheckNetIsolation LoopbackExempt -a -n="Microsoft.MicrosoftEdge_8wekyb3d8bbwe"

To test that the REST API is accessible and working, you can issue a request to the ping endpoint and expect a hash to be returned:

$ curl https://localhost:8443/api/key

Configuration

To run locally, copy the file dev.sample.json in the config folder and create a new file called dev.private.json.

Fill in the following values:

SUPPLY_CHAIN_SERVICES_ENDPOINT: The URL for the supply chain services - the endpoint needs to support SSL OUTLOOK_SERVICE_ENDPOINT: The URL for the Outlook Service - the endpoint needs to support SSL STORAGE_CONNECTION_STRING: The storage connection string in Azure.

Deployment

Run the gulp dist task and provide the URL behind which you are deploying, for example:

$ gulp dist --url https://supply-chain-web-app.azurewebsites.net/

Above command rewrites the manifest to point to the correct resources.

The result is a dist folder that you can push to your hosting environment, for example:

$ cd dist
# Below in case you want to build the dependencies locally
$ npm install --production
$ git init .
$ git add *
$ git commit -m "Deployment"
$ git push https://supply-chain-web-app.scm.azurewebsites.net:443/supply-chain-web-app.git master

supply-chain-office-integration's People

Contributors

amiturgman avatar cloudbeatsch avatar rabee333 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

supply-chain-office-integration's Issues

Support authentication in Node.js

Currently using contant user_id.
Add authentication layer and map authenticated user to a new address in the blockchain.
Open-

  1. How does this address get ethers to be able to send transactions to the contract?
  2. We should manage the user's password to be able to unlock the account... How does that fit in the overall design?

Investigate- Remove hard coded links to be relative

Currently the links to the images and to the server side are hard coded which makes deployment harder.
Needs to investigate of how to provide it from an external source or even better be relative to the base URL

Auto deploy Ethereum Consurtium + solution

  1. Deploy web machines
  2. Deploy Ethereum Consortium and connect Vnet to web apps
  3. Create genesis account + preallocate ethers
  4. Start mining
  5. Deploy smart contract
  6. Block public IP (using security group)
  7. Communicate smart contract account and address to ibera-services web-app

Revoke private key or add comment indicating the reason it has been committed

It is a security best practice to never commit a secret, especially within a publicly viewable repository. However, the following file has been committed to your repo:

  • supply-chain-office-integration/cert/server.key

To resolve this issue, either revoke this key and remove it from the repo, OR add a comment indicating both why it is necessary to have this private key and why it is not a security risk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.