Coder Social home page Coder Social logo

sedgwickhackfestpublic's Introduction

SedgwickHackfest

Subprojects

Look in the README.md file of each subproject to see how to setup your development environment for that part of the system. Here's a brief table of contents:

Subproject Description
Settlement Truffle blockchain project.
UI Web app UI for interacting with the blockchain.

Getting Started

Blockchain POC with Sedgwick

Prerequisites

What things you need to install the software and how to install them

NodeJS
TruffleJS

Installing

cd Settlement
truffle compile
truffle migrate

Running the tests

cd Settlement
truffle test

Connecting to Quorum:

Truffle: 140.87.66.68:22000 ssh [email protected] Password123! $ truffle deploy --network quorum

Deploying to Azure Web Apps:

There are two steps to this process, first we'll configure the web app on azure. Then we'll prepare our local code for deployment and push the project into the web app using git.

First in azure.

  1. Go to portal.azure.com and create a new 'Web App` with the name and the resource group of your choosing.

  2. Wait for it to deploy and then select it from the Azure Dashboard.

  3. Now, under deployment options select local git repository. (Note: you can use the 'Deployment credentials' tab to reset your credentials. At the time of writing, username: admin & password: Password123!)

  4. And before we do the deployment we're going to add some environment variables in the 'Application settings' tab. Select the 'Application settings' tab and scroll down to 'App settings'. Grab the keys and values from the .env in the UI directory. Here are my values at time of writing:

     `WEB3_URL : http://140.87.66.68:22000`
     `SETTLEMENT_CONTRACT_ADDRESS : 0x123416ba165b94173741deeb649726466c6fa9b9`
    
  5. Finally, we can copy the GIT URL from the 'Properites' tab. eg:

     `https://[email protected]:443/SedgBlockchain.git`
    

Now on your computer + Git CMD.

  1. Start by cloning this whole project: $ git clone https://github.com/timmyreilly/SedgwickHackfest.git

  2. Copy the UI folder to a new directory.

  3. Initialize a new git repository: $ git init

  4. Add a .gitignore adjacent to app.js - here's one you can copy

  5. Add all files to staging and commit changes. $ git add . & $ git commit -am "initial commit for deployment"

  6. Add the Azure Web APp instance git url to local remotes:

     `$ git remote add azure https://[email protected]:443/SedgBlockchain.git` 
    
  7. Now push to azure. (Note: I was only succefully able to enter my credentials using the Git CMD which you can download here.)

     `$ git push azure master`
    
  8. Now, after deployment is finished visit yourSiteName.azurewebsites.net to view the web app. If you want to see what was deployed or learn more about the environment you've deployed to visit yourSiteName.scm.azurewebsites.net.

Built With

Authors

License

This project is licensed under the MIT License

URL

https://github.com/timmyreilly/SedgwickHackfestPublic

sedgwickhackfestpublic's People

Contributors

timmyreilly avatar

Watchers

James Cloos avatar

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.