Skip to content

ccrrvvaa/cloudbeds-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudbeds-backend

  • Project for a Test task made by Cloudbeds - Backend Engineer

Installation

  • Execute composer install
  • Create a MYSQL database and execute the script db/backup_structure.sql
  • Make a copy of the file config.php.dist in a file called config.php and edit it with your database credentials
  • To Execute tests: ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests This is mocking the Repository, the idea was to avoid using a database for unit testing. All data would be managed in memory as array of models, only for running unittests
  • To run the server for testing purposes: php -S localhost:8080 -t public/

Notes

Releases

No releases published

Packages

No packages published

Languages