cryptocurrency project implemented in node.js using blockchain technology
Make sure that docker is installed and running using
docker version
| Command | Description |
|---|---|
| docker-compose up --build | To build and run the project and redis server |
| docker build -t philo/cryptocurrency -f Dockerfile.dev . | To build development image |
| docker run philo/cryptocurrency npm run test:coveralls | To run the test cases and export coverage report |
Make sure that npm and redis are installed and running using
npm version
redis-cli ping
then run
npm install
npm start
| Method | Url | Description |
|---|---|---|
| get | /api/blocks | Return blockchain |
| post | /api/mine | Mine new Block |
| post | /api/transact | Generate new Transactions |
| get | /api/transaction-pool-map | Return all transactions |
| post | /api/mine-transactions | Mine Block for new transactions |
| get | /api/wallet-info | to return my wallet balance |