Skip to content

suraj975/Pokemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon Search Application

Web Framework: React.JS, JavaScript, HTML, CSS

API: PokeApi

Installation Procedure

  1. Install node.js and npm (Download based on your system configuration https://nodejs.org/en/download/\
  2. Install react to run this project: Run the below commands on command prompt a. Open command prompt b. Move to location where you want to save the project c. Run this command npx create-react-app pokemon d. Then it will show you to move to the file pokemon (In windows run command cd pokemon) e. We also need React-Router methods, so run this command npm install react-router-dom f. Installation Done g. Delete existing files and copy all the files sent on mail and paste in “src” folder present in Pokémon folder h. Then run it by this command: npm start i. Then on your browser enter this url (http://localhost:3000/)
  3. Other method is to directly clone the project from the my Github profile https://github.com/Suraj975 a. Step1, 2 from ‘a’ to ‘e’ needs to be done initially, then these next steps need to be followed b. Open this https://github.com/Suraj975 c. On top right side you will see clone or download. Download the zip file that will contain the files d. You can also run this command on command prompt “git https://github.com/Suraj975/Pokemon.git”

Project

Initially only two links will be seen on the page home and Find Pokemon.

Home

This is the current page that we see on Url: http://localhost:3000/

  1. In the above search bar you can search any pokemon by writing its name in small letters and correct names
  2. It will shows the details of the pokemon selected
  3. Just to start with some examples try: raichu, mewtwo, blastoise etc

Find Pokemon

This is the other page that allows you to select the pokemon by its types 4. In this search you can enter multiple types separating it by commas 5. Types entered in the search bar should be of small character 6. Just to start with some examples try: fire, rock, water

Details

This is the third page will pop up that will show all the details of the Pokémon’s that you have selected

  1. This will include its abilities and the performance stats

Testing Tools:

  1. React has its own developer tools to find debugs and to check the performances.
  2. Install React performance tool from chrome store
  3. Enter into developer tools and click on performance tool
  4. Start recording and play with the pages as it all gets captured on the tool
  5. After stopping the recording the time taken scripting, rendering, system, idle and many other tests
  6. Jest is also very know method of testing react application. Facebook uses as their primary means of testing react apps.
  7. Just need to run npm test using command prompt.

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Releases

No releases published

Packages

No packages published