Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 733 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 733 Bytes

MVP BlockChain App With Simple API

Run project

git clone https://github.com/OlegMarko/php-simple-blockchain.git
cd php-simple-blockchain
cp .env.example .env
composer install
php artisan generate:blockchain_with_block
php -S localhost:8888 -t public

Run project via Docker.

git clone https://github.com/OlegMarko/php-simple-blockchain.git
cd php-simple-blockchain
docker-compose up -d --build
docker exec php-fpm-blockchain php artisan generate:blockchain_with_block

API methods

  • Add new block
curl --location 'http://localhost:8888/blockchain/create' --form 'data="data for new block"'
  • Get blockchain
curl --location 'http://localhost:8888/blockchain/show'