An open API service indexing awesome lists of open source software.

https://github.com/leodhb/poketrader

Simple Pokémon trade calculator. Made as empoyment test for bxblue
https://github.com/leodhb/poketrader

composer mvc-framework php phpunit pokedex pokemon

Last synced: 2 months ago
JSON representation

Simple Pokémon trade calculator. Made as empoyment test for bxblue

Awesome Lists containing this project

README

          




PokéTrader - A Simple Pokémon trade calculator

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![Heroku](https://heroku-badge.herokuapp.com/?app=poketrader-leod)

Deploy [here](https://poketrader-leod.herokuapp.com/)

## About the project
PokeTrader is a technical test made for the BxBlue Selective Process. BxBlue is a brazilian startup that works with payroll loans.

## Running it locally
1. Create a MySQL database and change the connection data in [Database.php](https://github.com/leodhb/poketrader/blob/main/app/Libraries/Database.php)
2. Run the MySQL query below
~~~~sql
CREATE TABLE `trades` (
`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`player_1` varchar(45) NOT NULL,
`player_2` varchar(45) NOT NULL,
`trade_data` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
~~~~
3. Clone this repository to your apache2 localhost folder
4. Install Dependencies by running ```composer install```

## Tests
Model and Helper classes have been fully tested.
You can see all test files [here](https://github.com/leodhb/poketrader/tree/main/tests/app). And to run the tests just run the command ```php vendor/bin/phpunit --colors tests```

## Questions?
You can contact me through social media or email me at henrikleod@gmail.com. I'll be glad to help 💜