The Beyond the Block blockchain simulator, BlockchainSim, is a Bit Coin Simulator developed at Drury University by Bryan Valencia, Laura Pareja, Seth Workman, Sean Lowry, Ean Vandergraaf, and Dawson Holderman under the direction of Dr. Scott Sigman and Dr. Chris Branton. The project is licensed under the Apache 2.0 license. Copyright 2021 by Drury University.
Current release code is found in the dev branch.
# Install dependencies for server
npm install
# Install dependencies for client (Re run this for new packages)
npm run client-install
# Start up the app for development
npm run dev
If you get React Hook error (mismatched React versions)
yarn install
# Run Tests (located in src/tests directory)
npm/yarn run test
mysql -u root -p
source /path/to/scripts/databaseCreation.sql
If you run into the error when running MySQL: Client does not support authentication protocol requested by server; consider upgrading MySQL client
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
flush privileges;
That should fix it :)
git clone
, git fetch --all
, git branch -v -a
, git checkout -b dev origin/dev
cd ./BlockchainSim
, yarn install
, cd client
, yarn install
mv ./BlockchainSim btb
.“homepage” : “mcs.drury.edu/BtB”,
below private and above dependencies, and insert “start”: “PORT=3220 react-scripts start”
instead of "start": "react-scripts start"
.REACT_APP_API_URL=mcs.drury.edu/BtB
and add REACT_APP_URL_SCHEME=https
as the last line.router.use("/BtB/api/users", require("./api/users"));
to: router.use("/api/users", require("./api/users"));
.cd client
, npm run build
.ps aux | grep node server.js
returns a process other than the grep process, note its pid.kill -9 <pid from previous step>
.cd ..
, assuming you are in the client subdirectory.pm2 ls
, pm2 delete <app>
, where app is the number of the existing process.pm2 start node server.js
.pm2 startup
, follow the directions printed.pm2 save
.npm install -g pm2
.