Onboard Stanford students to Chainge
-
Download and install docker. You may need to reboot your computer to run docker daemon.
-
Download the docker image by
docker pull jblee94/chainge:1
-
Run the docker image by
docker run -p 3333:3333 --add-host="localhost:<YOUR HOST IP ADDRESS>" -it jblee94/chainge:1 /bin/bash
This binds the host's port 3333 to container's 3333. This will log you into the docker image as root.
-
Run the redis server
service redis-server start
-
Run our txn calculator
/home/chaingeStanford/crypto/main
You may need to run it as a background process (by appending & at the command). But you can also run another terminal process by
docker exec -i -t <YOUR DOCKER INSTANCE ID> /bin/bash
You can check your docker instance id by
docker ps
-
Go to config.js (which can be found in the chaingeStanford repo within Docker) and set your id and password for nodemailer service. You can use your gmail account.
-
Change directories to home and then chaingeStanford, then run
npm start
to run the server.