Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 2.04 KB

README.md

File metadata and controls

48 lines (32 loc) · 2.04 KB

PhxMon

API to create trainers and their pokémons. Consuming PokéAPI.

Dependencies

  • Erlang and Elixir
  • PostgreSQL
  • Software for testing endpoints (Postman, HTTPie, Curl)

Start

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Examples

Trainers:

The requests below require the Header: Authorization:Bearer token (Trainer login token)

Pokémons:

The requests below require the Header: Authorization:Bearer token (Trainer login token)

Tests

  • Run the tests with mix test

References