Click here to visit: TeamPokedex
- 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?
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
$ git clone https://github.com/LukasPol/team-pokedex.git
$ cd team-pokedex
$ cp .env.sample .env
$ docker-compose build
$ docker-compose up
(you can use the flag-d
)$ docker-compose exec app bash
$ rake db:create
$ rake db:migrate
$ rails s -b 0.0.0.0
Open in browser http://localhost:3000
$ git clone https://github.com/LukasPol/team-pokedex.git
$ cd team-pokedex
$ cp .env.sample .env
- Set your username and your password and your host database
$ bundle install
$ yarn install
$ rake db:create
$ rake db:migrate
$ rake db:seed
$ rails s
Open in browser http://localhost:3000
I create two services in a class GetPokedex
:
- First service get all pokemons from pokeapi and sort by name and return results
- Second service get one pokemon from pokeapi, receive a parameter what is name pokemon, and return result
rspec spec/
- Devise for authetication
- Pundit for authorization
- rest-client for consume api
tests
- database_cleaner to erase tests database
- Factories to help with the tests
- FFaker to generate random faker
- Rspec for tests
- rubocop-rails and rubocop-performance for help me with good pratices :D