/pokeholocron

Primary LanguageJavaScriptMIT LicenseMIT

Logo

Pokeholocron

GitHub top language Repository size GitHub last commit Repository issues GitHub

About the project   |    Technologies   |    Getting started   |    How to contribute   |    License

Run in Insomnia

Layout

👨🏻‍💻 About the project

This application was developed during the first week of community challenges Holocron.

This challenge created by Felipe Pereira and Gabriel Sartorato with the following description:

With the API(PokeAPI), we need you to create a WEB interface to display the information of the captured Pokemons using ReactJs. Create the back using nodejs(adonis, express, nestjs etc) and postgres

Application Requirements

  1. Create account for coach
  2. Add new Pokémon to Pokédex which at first will be empty (save in postgres)
    1. save (name, types, image url, weight, size, attack and defense, abilities)
  3. Have a filter to search Pokemons by name, number or type
  4. List the Pokémon that have been added to Pokédex in alphabetical order
  5. List all 1st generation pokemons (only)
  6. Show character details added to Pokédex as:
    • Name
    • Image giving the user the option to upload their own image, replacing the one delivered via API
    • Weight
    • List of types
    • List of skills
    • Defense
    • Attack
  7. Delete Pokémon that have been added to Pokédex

🚀 Technologies

Technologies that we used to develop this api

💻 Getting started

Import the Insomnia.json on Insomnia App or click here Run in Insomnia}

Requirements

Clone the project and access the folder

$ git clone https://github.com/EliasGcf/NOME_DO_REPO.git && cd NOME_DO_REPO

Follow the steps below

Backend

# Starting from the project root folder, go to backend folder
$ cd backend

# Install the dependencies
$ yarn

# Create the instance of postgreSQL using docker
$ docker run --name project-postgres -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres

# Make sure the keys in 'ormconfig.json' to connect with your database
# are set up correctly.

# Once the services are running, run the migrations
$ yarn typeorm migration:run

# To finish, run the api service
$ yarn dev:server

# Well done, project is started!

Web

Obs.: Before to continue, be sure to have the API running

# Starting from the project root folder, go to frontend folder
$ cd frontend

# Install the dependencies
$ yarn

# Be sure the file 'src/services/api.ts' have the IP to your API

# Start the client
$ yarn start

🤔 How to contribute

Make a fork of this repository

# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.

$ gh repo fork BrunoSSantana/pokeholocron

Follow the steps below

# Clone your fork
$ git clone your-fork-url && cd pokeholocron

# Create a branch with your feature
$ git checkout -b my-feature

# Make the commit with your changes
$ git commit -m 'feat: My new feature'

# Send the code to your remote branch
$ git push origin my-feature

After your pull request is merged, you can delete your branch

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


👨‍💻 Contribuidores

All the success we achieve is the result of teamwork. It was an honor to have this opportunity to work with these great professionals and to be bringing valuable knowledge of this experience. And a special thanks to the Holocron community 💜.


Bruno Santana


DouglasANS


Moizes F. dos Santos


Jefferson C. Silva