Implements the following:
- Queries blockchain for crypto data
- Creates a crypto wallet and transacts
- PHPUnit tests
- JWT authentication
- Laravel JSON API (LJA)
- MYSQL DB
- A wallet used to hold bitcoins and carry out transactions.
- Clone repo and run composer install
- php artisan migrate to run migrations
- php artisan serve to start the app
- Run wallet service locally (https://github.com/blockchain/service-my-wallet-v3 and expose service url)
- POST: http://localhost:8000/api/register Body:{name,email,password}
- POST: http://localhost:8000/api/login Body:{email,password}
- GET: http://localhost:8000/api/coins [fetch list of crypto currencies from Coin Gecko]
- GET: http://localhost:8000/api/coins/ethereum [Get coin data and ticker data]
- POST: http://localhost:8000/api/wallet Body:{email,label,password,private_key}
- GET: http://localhost:8000/api/wallet/{wallet_id}
- GET: http://localhost:8000/api/wallet/{wallet_id}/address/{address}/balance
- vendor/bin/phpunit
- Add custom make file for easy terminal commands
- Add JSON-specific exception handling
- Fix Deprecation warning: require.Blockchain/Blockchain is invalid.
- Add JSON API spec