{"id":15064544,"url":"https://github.com/leodhb/pokecoin","last_synced_at":"2026-01-03T01:11:53.569Z","repository":{"id":42383415,"uuid":"477917376","full_name":"leodhb/pokecoin","owner":"leodhb","description":"Exchange to trade pokémon as NFTs","archived":false,"fork":false,"pushed_at":"2022-04-09T01:27:00.000Z","size":1021,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T16:49:22.387Z","etag":null,"topics":["bxblue","nft","pokemon","rails7","ruby","technical-test"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leodhb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-05T00:13:40.000Z","updated_at":"2022-09-16T01:48:38.000Z","dependencies_parsed_at":"2022-09-13T18:41:17.960Z","dependency_job_id":null,"html_url":"https://github.com/leodhb/pokecoin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodhb%2Fpokecoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodhb%2Fpokecoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodhb%2Fpokecoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodhb%2Fpokecoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leodhb","download_url":"https://codeload.github.com/leodhb/pokecoin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bxblue","nft","pokemon","rails7","ruby","technical-test"],"created_at":"2024-09-25T00:20:25.241Z","updated_at":"2026-01-03T01:11:53.532Z","avatar_url":"https://github.com/leodhb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PokéCoin\nExchange to trade pokémon as NFTs\n\n## Project Specifications\n#### HTTP Routes:\n| **VERB** | **Route**             | **Description**                         |\n|----------|-----------------------|-----------------------------------------|\n| [GET]    | /                     | Landing Page                            |\n| [GET]    | /pokemon              | List All Pokemon                        |\n| [GET]    | /pokemon/:id          | Shows a Pokemon                         |\n| [GET]    | /pokemon/:id/checkout | Proceed to buy a Pokemon                |\n| [POST]   | /pokemon/:id/buy      | Validates and transact a valid purchase |\n| [POST]   | /pokemon/:id/sell     | Validates and transact a valid sale     |\n| [GET]    | /me                   | Displays the logged in user account     |\n| [GET]    | /me/add               | Shows a screen to add money to wallet   |\n| [PATCH]  | /me/add               | Adds money to the wallet                |\n| [GET]    | /me/transactions      | Shows all user transactions             |\n\n#### Registering a Buy (from the exchange):\n - Check if user has enough USD_BTC to buy\n - Decrement from user balance\n - Change the pokemon owner\n - Change the last_sell_price\n - Register a transaction with a BUY operation\n\n#### Registering a Sell (to the exchange):\n - Check if user really own that Pokemon\n - Change the pokemon owner\n - Change the last_sell_price\n - Add to from user balance\n - Register a transaction with a SELL operation\n\n## ERD Diagram\n![QuickDBD-Free Diagram](https://user-images.githubusercontent.com/24739860/161654566-2c97b19f-7f3f-440d-b1e5-1409e13ae29b.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodhb%2Fpokecoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleodhb%2Fpokecoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodhb%2Fpokecoin/lists"}