Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions on Front-End Display #1

Open
EricBell271 opened this issue Jul 7, 2019 · 0 comments
Open

Questions on Front-End Display #1

EricBell271 opened this issue Jul 7, 2019 · 0 comments

Comments

@EricBell271
Copy link

Hello,

I am fairly new to nodejs, so this may be do to my lack of knowledge.

But I am having trouble getting the transactions to display on the localhost:3000.

Steps to reproduce

  1. npm run node

#this connects the server.

  1. Http EndPoints. Do I have to do more coding to access them? Or Can I run this in the terminal with a command?

I run this in the terminal.

POST /blockchain/body // add new data to the chain

Please enter content (application/x-www-form-urlencoded) to be POSTed:
12345896

^C #have to Force Exit

  1. I also tried to run the test file.

npm run test

[email protected] test /home/user/blockchain-in-node
eslint .

Should Andy and Johns Transactions be displayed on the local host after running this command?

let transaction = new Transaction('Andy', 'John', 10);
let nextBlock = blockchain.buildNextBlock([transaction]);
blockchain.addBlock(nextBlock);

let transaction2 = new Transaction('John', 'Andy', 5);

Thank you,

E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant