Code examples for Building RESTful API With ReactPHP Book.
This repo contains the final code of the project that we build through the book.
- Run docker-compose:
docker-compose up
- Install Composer dependencies:
docker-compose exec php composer install
- Execute migrations:
docker-compose exec php ./vendor/bin/doctrine-migrations migrate
- Use requests.http to send requests.
For requests that require authentication you need to register a new user first.
- Send
POST http://localhost:8000/auth/signup
to create a new user. - Then send
POST http://localhost:8000/auth/signin
to log in with this new user.