- clone this repo
git clone https://github.com/erwinrachim/checklist-endpoints.git cd checklist-endpoints
- create
.env
with copy.env.example
to.env
- create database
checklist
- setting your
.env
DB_DATABASE=checklist DB_USERNAME={your_db_user} DB_PASSWORD={your_db_password}
- run composer for install library
composer install
- database migrate and seed
php artisan migrate --seed
- run app
php -S localhost:8000 -t public
- you can use postman or something else
- example endpoint
http://localhost:8000/checklists/templates
- create database
checklist_tests
- run tests
vendor/bin/phpunit