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
- Host: GitHub
- URL: https://github.com/leodhb/poketrader
- Owner: leodhb
- License: gpl-3.0
- Created: 2021-06-17T18:26:46.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T17:04:54.000Z (almost 5 years ago)
- Last Synced: 2025-03-23T06:27:31.360Z (about 1 year ago)
- Topics: composer, mvc-framework, php, phpunit, pokedex, pokemon
- Language: PHP
- Homepage: https://poketrader-leod.herokuapp.com/
- Size: 1.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PokéTrader - A Simple Pokémon trade calculator
[](https://www.gnu.org/licenses/gpl-3.0)

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 💜