- Install node.js and npm (Download based on your system configuration https://nodejs.org/en/download/\
- 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/)
- 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”
Initially only two links will be seen on the page home and Find Pokemon.
This is the current page that we see on Url: http://localhost:3000/
- In the above search bar you can search any pokemon by writing its name in small letters and correct names
- It will shows the details of the pokemon selected
- Just to start with some examples try: raichu, mewtwo, blastoise etc
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
This is the third page will pop up that will show all the details of the Pokémon’s that you have selected
- This will include its abilities and the performance stats
- React has its own developer tools to find debugs and to check the performances.
- Install React performance tool from chrome store
- Enter into developer tools and click on performance tool
- Start recording and play with the pages as it all gets captured on the tool
- After stopping the recording the time taken scripting, rendering, system, idle and many other tests
- Jest is also very know method of testing react application. Facebook uses as their primary means of testing react apps.
- Just need to run npm test using command prompt.
This project was bootstrapped with Create React App.
In the project directory, you can run:
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
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.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify