VedranVukoje / reactphp-restful-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:PHP 98.9%Language:Dockerfile 0.9%Language:Shell 0.2%