A GraphQL implementation of the CoinDesk laravel package in real use
Ensure that you have:
- PHP >=7.2
- MYSQL
- Laravel 5.8+
- Composer installed in your machine
- Clone the project
- Copy
.env.exapmle
to.env
- Optional: Update
.env
with your database details - Install composer:
composer install
- Bootstrap the application:
php artisan key:generate
php artisan jwt:secret
php artisan migrate
- Start the server:
php artisan serve`
- Have fun!
Make a query of the form:
{
calculatePrice(type: "buy", margin: 300, exchangeRate: 360)
}
{
calculatePrice(type: "sell", margin: 0.2, exchangeRate: 362.50)
}
Contributions are always welcome
Coindesk for Laravel is released under the MIT License. See the bundled LICENSE file for details.
Reach out and support me on Patreon. All pledges will be dedicated to opensource projects.