Git Product home page Git Product logo

pokeruby's Introduction

README

This is an study website that fetchs POKEAPI https://pokeapi.co/docs/v2 for pokemon info, whilst getting user input in order to search for pokemon id or pokemon name. I am using Ruby On Rails, so in order to test anything you need to have Ruby 3.1.4 installed, and run bundle install on the pokeRuby directory, after everything is installed, run rails s on the terminal (need to be in pokeRuby dir)

Hey there! So, you stumbled upon this project. Cool, right? Here's a quick rundown so you know what's up without diving too deep:

What's This All About?

Well, it's a Pokédex. You know, like that thing Ash(Me) carries around in Pokémon. Except it's on the web. You can search for Pokémon and learn stuff about them.

What You Need to Know

Dependencies: There are some gems listed in the Gemfile. Just run bundle install to get everything set up.

Getting Started: Once you've installed the dependencies, fire up the server with rails server (or rails s on the project dir) and go to http://localhost:3000 in your browser.

Anything Else?

Not really. If you have questions, ask Google first. If that fails, well, maybe try asking nicely in the Issues section on GitHub. No promises though.

Before Running it, you should know:

JWTs need to be created with a secret key that is private. It shouldn’t be revealed to the public. When we receive a JWT from the client, we can verify it with that secret key stored on the server.

We can generate a secret by typing the following in the terminal:

bundle exec rails secret We will then add it to the encrypted credentials file so it won’t be exposed:

VSCode Terminal:

EDITOR='code --wait' rails credentials:edit

Then we add a new key: value in the encrypted .yml file.

# Other secrets...

# Used as the base secret for Devise-JWT

devise_jwt_secret_key: (copy and paste the generated secret here)

After saving the file, close it on your editor and you should be good to go

pokeruby's People

Contributors

ashcrysis avatar pbressan13 avatar

Stargazers

Jonas Silva avatar  avatar Danyel Martins avatar Maria Gabriella avatar

Watchers

 avatar  avatar

pokeruby's Issues

Mudar campos do model para ingles

Users:

t.string "nome" -> name
t.string "telefone" -> phone
t.string "cep" -> zipcode
t.string "rua" -> street
t.string "numero" -> number
t.string "complemento" -> add-on

Pokemon:

t.string "nome" -> Name
t.string "tipo" -> Type
t.string "imagem" -> Image OR Url

pokemons lists don't load when returning from other page

the pokemon list doesn't fetch after going into a specific pokemon page and refreshing the page/favoriting, forcing the user to refresh the page again.
doesn't break exactly anything but its annoying to be forced to press f5.

Usar a main como branch principal

Acredito que não precisamos mais manter a main (uma branch desatualizada) com as informações que temos la

Vamos mergear a v2-main para a main, e deixar ela ser a principal, para mantermos o padrão

Backend-end somente API nas rotas /v2

Backend-end somente API nas rotas /v2

Criar as models de Usuario e Pokemon

Usuario :

  • id
  • email
  • nome
  • telefone
  • endereço (cep, rua, numero, complemento)

Pokemon:

  • id
  • nome
  • moves (2)
  • tipo (1, ou +)
  • imagem

Favoritos

  • adicionar na model de favoritos uma coluna user_id

Geral

  • Criar a controller de Pokemon pra listar, editar, deletar e criar pokemon

React

  • Criar projeto React novo para o front end, consultar endpoints da v2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.