This project was bootstrapped with Create React App.
First you need to clone and then, run the command bellow to install all dependences:
This application uses enviroment variables as the Marvel API key, so you need to include a .env
file with the following .env.sample
file:
PORT=5001
SKIP_PREFLIGHT_CHECK=true
REACT_APP_MARVEL_SERVICE_ENDPOINT=https://gateway.marvel.com/
REACT_APP_MARVEL_API_KEY={YOUR_API_PUBLIC_KEY}
You can simply copy the contents of the .env.sample
to a new .env
file and add the API key at the REACT_APP_MARVEL_API_KEY
variable.
To execute the project:
App will run in the development mode.
Open http://localhost:5001 to view it in the browser.
This application is provided with hot reload in any code edition and linters to help maitain the pattern.
Build image and create container
Run application
Stop container
Remove container
This application is also provided with unit tests and end-to-end tests.
Unit tests:
End-to-ened tests:
Launches the Cypress test runner to run the End-to-end Tests. Important: your application should be running on background to execute e2e tests properly.
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!
This application aims to meet the requirements of Core Web Vitals. You can check performance through Pagespeed.