Skip to content

Files

Latest commit

2519de1 · Jul 29, 2020

History

History
29 lines (19 loc) · 763 Bytes

readme.md

File metadata and controls

29 lines (19 loc) · 763 Bytes

Code examples for Building RESTful API With ReactPHP Book.

This repo contains the final code of the project that we build through the book.

Quick start

  1. Run docker-compose:
docker-compose up
  1. Install Composer dependencies:
docker-compose exec php composer install
  1. Execute migrations:
docker-compose exec php ./vendor/bin/doctrine-migrations migrate
  1. Use requests.http to send requests.

For requests that require authentication you need to register a new user first.

  1. Send POST http://localhost:8000/auth/signup to create a new user.
  2. Then sendPOST http://localhost:8000/auth/signin to log in with this new user.