Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

wesleyhf/pagarme-software-engineer-backend

Repository files navigation

Update (2019-11-27)

pt-BR

Eu agradeço por todo o aprendizado/atenção que recebi pela Pagar.me, porém o "timing" não estava sincronizados para ambos os lados. Obrigado novamente!

en

I'm thankful for all the knowledge/attention that I received from Pagar.me but the "timing" was not synced for both sides. Thank you again!

pagar.me - Software Engineer Back-end Challenge ✨

Challenge description (PT-BR)

Table of Contents

Developing

Just follow the steps but if found a 🪲 drop your comments on Issues section.

Dependencies

Setup

  1. Clone the repository
$ git clone git@github.com:wesleyhf/pagarme-software-engineer-backend.git
  1. Setup .env file
$ cp .env.example .env
  1. Build Docker Images

Check if your ./docker file has permission to execute, if not run: chmox +x ./docker

$ ./docker build
  1. Run migrations/seeders
$ ./docker migrate
$ ./docker seed
  1. Start the containers
$ ./docker dev
# use ./docker down to stop all the containers
  1. Important ❗

Now your environment is ready to develpoment!

Things you need to know:

  • Our API is RESTful and all responses are in JSON format

Endpoint: http://pagarme.localhost/

  • All endpoints needs an authentication, check below:

To set an authentication you need the clientId key on Request Header, e.g:

clientId:CLIENT_ID

To help you on this journey:

Testing

Check if you ran the migration command ./docker migrate

$ ./docker test