Skip to content

A blockchain lending application prototype with Node.JS, Ethereum & Truffle for the backend and React for the front-end.

Notifications You must be signed in to change notification settings

ntudor11/CryptoCredit

Repository files navigation

CryptoCredit

A blockchain lending application prototype with Node.JS and Truffle for the backend and React for the front-end. The centralised prototype and decentralised side are separated and work on different servers.

System Installation Guidelines

  1. Start your local MySQL server.
  2. Run the SQL commands from within the file create-db.sql (ei􏰄he􏰁􏰊r via Terminal or t􏰄he Ph􏰃pMyAdmin􏰇 interface) from the root directory, in order to create the database and to write some test data in it.
  3. Clone the CryptoCredit repository.
  4. Install the dependencies both in the root directory and in the client directory with the command npm install.
  5. To start the Node.JS server and the React application, run from the root directory: npm run dev.
  6. To start the Truffle development server, run from the root directory: npm run truffle.
  7. To start the decentralised side of the front-end application, run from the root directory: npm run eth.

The Node.JS server runs at: http://localhost:5000/.

The React front-end runs at: http://localhost:3000/.

The decentralised front-end with the integration to the smart contract runs at: http://localhost:8000/.

To interact with the dapp, copy and paste one of the addresses generated by the Truffle server into the field ‘Sender ETH address’. Submit any amount and interact with the dapp using the other buttons.

About

A blockchain lending application prototype with Node.JS, Ethereum & Truffle for the backend and React for the front-end.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •