Skip to content

Latest commit

 

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference project - Subjects in Blockchain Technologies 2022

This is copy of the project created as part of the course Subjects in Blockchain Technologies.

How to run the project

make run-ganache
truffle migrate
npm run build

Prerequisites

In order to build, deploy, test the smart contracts, and run the front-end, you need to have the following:

Installation and usages

Smart contracts

In order to install the dependencies to build, deploy and test the smart contracts, run the following command from the root of the project:

npm install

In order to deploy the smart contracts locally, run the following command from the root of the project:

truffle migrate

Running the smart contract tests is done by running the following command from the root of the project:

truffle test

Front end

In order to install the dependencies to build and run the front end application, run the following command from the client of the project:

npm install

In order to run the front end application, run the following command from the root folder of the project:

npm run build

This should automatically open a browser window and load the front end application. If not you can try to manually enter localhost:3000 in the browser address bar.

Folder & file structure

  • contracts: Contains the app's Solidity contracts (.sol files).
  • migrations: The files in this folder will orchestrate the deployment process.
  • test: Folder for automated tests of contracts (either in Solidity or JavaScript).
  • truffle-config.js: A configuration file for your project's settings.
  • client: Folder for the front-end Aeact app.

Todo

  • Add player stats on front page (dashboard) showing totaler number of cards etc.

About

Reference project from the course Subjects in Blockchain Technologies

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages