naivechain icon indicating copy to clipboard operation
naivechain copied to clipboard

Quick start not working..help!

Open projmseo opened this issue 6 years ago • 3 comments

Hello. I can't know how to execute quick start.. Command is not working..( I downloaded node js and npm) please help me..

npm

projmseo avatar Mar 02 '18 08:03 projmseo

I'm not windows user so I didn’t test it but try this.

c:\path\to\naivechain> set HTTP_PORT=3001 c:\path\to\naivechain> set P2P_PORT=6001 c:\path\to\naivechain> npm start

or fix the start script in package.json

{
  ...
  "scripts": {
    "start": "set HTTP_PORT=3001 && set P2P_PORT=6001 && node main.js"
  }
  ...
}

And then execute npm start on cmd.

hyeoksuhan avatar Mar 05 '18 10:03 hyeoksuhan

Hello sir.

Thank you for reply.

You helped me put in into practice.

Thank you very much!

For Windows

  1. CMD set HTTP_PORT=3001 set P2P_PORT=6001 npm start

  2. CMD set HTTP_PORT=3002 set P2P_PORT=6002 set PEERS=ws://localhost:6001 npm start

  3. CMD (downloaded curl for windows) curl -H "Content-type:application/json" --data "{"data" : "Somedatatothefirstblock"}" http://localhost:3001/mineBlock

execute

projmseo avatar Mar 06 '18 06:03 projmseo

You may run it in linux OS, it is much easier.

gentleKun avatar Apr 15 '18 07:04 gentleKun