open-dm / api

A Laravel-based API for managing all things D&D
MIT License
3 stars 0 forks source link

OpenDM Logo

Open DM API

Initialisation

Create a database named 'opendm'

php artisan migrate
php artisan serve

Then run this SQL to create your first monster

INSERT INTO `monsters` (`id`, `name`, `size_id`, `base_hp`, `hp_dice_id`, `hp_dice_count`, `armor_id`, `speed`, `strength`, `dexterity`, `constitution`, `intelligence`, `wisdom`, `charisma`, `challenge_id`, `created_at`, `updated_at`) VALUES (NULL, 'Orc', '3', '6', '3', '2', '4', '30', '16', '12', '16', '7', '11', '10', '4', NULL, NULL)

Go to http://127.0.0.1:8000/api/monster/retrieve/1/ for a json response

Installing dev toolkit