/b2nh-api

Simple API for Natural Hazards

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

B2NH

Documentation of the API (Swagger OpenAPI)

Launch dev environment

  • Clone the repo ;
  • cd app
  • cp .env.example .env
  • vim .env and edit it to match your configuration
  • docker-compose up -d
  • docker-compose exec php php artisan migrate:fresh --seed
  • Open your browser http://127.0.0.1:9042

Tests

Tests are written within ./app/tests/ directory.

  • docker-compose exec php ./vendor/bin/phpunit

SQLite Schema

sqlite_schema

License

  • Licensed with GPLv3