Skip to content

OlegMarko/php-simple-blockchain

Repository files navigation

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'

About

PHP / Laravel / BlockChain / CI / Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published