Git Product home page Git Product logo

fullstackpokemon's Introduction

๐Ÿš€ Welcome to Fullstack Pokemon!

Build react components to catch & display pokemon, write MySQL queries to get and save your caught pokemon, and connect it all together using an express server in this fullstack workshop.

Table of Contents

  1. Installation
  2. Instructions

Installation

  1. Fork the repository
  2. Clone your forked repository:
git clone <your_repo_link>
  1. Navigate to the root directory of the repository:
cd fullstackPokemon
  1. Install dependencies
npm install
  1. Seed the database
npm run seed
  1. Bundle and compile the frontend code
npm run build
  1. Open a new terminal and start the server
npm start
  1. You are now ready to start working on the exercise!

Instructions

It is reccomended to complete the requirements in an order similar to the outline below:

ORDER DESCRIPTION
1 Fix Pokemon.jsx. Pass the dummy data from pokemonData.js to PokemonList.jsx as props to help with building out Pokemon.js until you have correctly implemented step 4.
2 Finish writing the retrieveAllPokemon function in queries.js. This function should query the database for all pokemon.
3 Finish writing the '/api/pokemon' route. This endpoint should invoke the retrieveAllPokemon function we wrote in step 1.
4 Fix the getPokemon method in PokemonList.jsx. This method should make a GET request to the server for all pokemon.
5 Create a '/api/addPokemon' endpoint in server.js. This endpoint should should add a new pokemon to the database(you will need to create a function that will query the DB as well).
6 Fix the addCaughtPokemon method in PokemonList.jsx. This method should update the pokemonList in state and make a request to the DB to add the new pokemon. You will know if you implemented steps 4, 5, & 6 correctly if when you reload the page, your newly caught pokemon appear in your pokemonList.

fullstackpokemon's People

Contributors

rick-o-h avatar dylanreid7 avatar

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.