LukasPol / team-pokedex

A project for trainers to create pokemon teams, consuming api pokeapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team Pokedex

GitHub top language GitHub language count GitHub repo size

Click here to visit: TeamPokedex

Team Index

Team Show

  • You can register yours teams and shared with yours friends;
  • You can see all teams of another trainers;
  • And now, Who will be the strongest?

Pre-requisites

Recommend

  • Docker and Docker Composer

or

  • Ruby ~> 2.7.2
  • Rails ~> 6.0.3
  • Postgres ~> 12.6
  • Node ~> 13.12.0
  • Yarn ~> 1.22.5
  • Webpacker

Setup project with docker

  1. $ git clone https://github.com/LukasPol/team-pokedex.git
  2. $ cd team-pokedex
  3. $ cp .env.sample .env
  4. $ docker-compose build
  5. $ docker-compose up (you can use the flag -d)
  6. $ docker-compose exec app bash
  7. $ rake db:create
  8. $ rake db:migrate
  9. $ rails s -b 0.0.0.0

Open in browser http://localhost:3000

Setup project without docker

  1. $ git clone https://github.com/LukasPol/team-pokedex.git
  2. $ cd team-pokedex
  3. $ cp .env.sample .env
  4. Set your username and your password and your host database
  5. $ bundle install
  6. $ yarn install
  7. $ rake db:create
  8. $ rake db:migrate
  9. $ rake db:seed
  10. $ rails s

Open in browser http://localhost:3000

Services

I create two services in a class GetPokedex:

  1. First service get all pokemons from pokeapi and sort by name and return results
  2. Second service get one pokemon from pokeapi, receive a parameter what is name pokemon, and return result

Run tests

  1. rspec spec/

Gems used

tests

About

A project for trainers to create pokemon teams, consuming api pokeapi


Languages

Language:Ruby 69.4%Language:HTML 23.1%Language:JavaScript 5.1%Language:SCSS 0.9%Language:Dockerfile 0.6%Language:CSS 0.6%Language:Shell 0.2%