Skip to content

sharing-science/SCIENCE-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

152 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCIENCE POC

A POC made by Noe Horowitz

Walkthrough tutorial video: https://rpi.box.com/s/gieyjk3pvzyg8yu7a9hfgc3a9sqf8lgs

Installation

There are two main parts to this application, Truffle and the Client, each with its own necessary packages.

All of these commands assume that you are starting in the root directory.

Truffle

Truffle is the framework used to code, test, compile and deploy the smart contracts for this application, it is necessary if you are making any changes to the smart contracts

> npm install

Client

The Client is the front end of the application, this is where most of the application lies. It is built using React.

> cd .\client\
> npm install

Usage

Truffle

Uploading a new smart contract can be complicated as it requires multiple steps to be done in the correct order.

> truffle develop
> truffle migrate

This will redeploy the original contracts, this can take a few minutes.

Once that has been done, the new contracts' ABI will automatically be copied into the .\client\src\contracts folder.

Client

Running the client works as follows:

> cd .\client\
> npm run start

This will start a live version of the React Server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors