carlinhus / technical-backend-test

Test job application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Technical test backend

Widitrade request test implementation

Get started

- You must have installed docker, docker-compose, make and tmux (this is optional)
sudo apt install dockerio docker-compose make
-Now you should clone this repo and go into root folder, then execute:
make up
make init-composer

Now, you will have running all services. Your ports 80 and 5432 should be running nginx and Posgres SQL server respectively.

Requests

Show a list of shorten urls:

GET http://localhost/api/v1/short-urls

Create short url:

POST http://localhost/api/v1/short-urls

Navigate to a shorted url:

GET http://localhost/<shortUrl>

Tests

You can execute the programmed tests using this command at the root of the project:

make test

Made by Carlos Campo Liébana with love

About

Test job application


Languages

Language:PHP 85.3%Language:Dockerfile 7.2%Language:Makefile 3.9%Language:Shell 3.6%