This project is simple react app created as a demo for the npm module marvel-random-hero. Marvel-random-hero is my first npm package published. I created it for the Keepcoding Bootcamp Fullstack Web Development, which I am studying at the moment.
git clone https://github.com/IsmaelB83/marvel-random-hero-demo.git
cd marvel-random-hero-demo
npm install
I used create-react-app as the framework to create the react app, therefore starting this app is that easy as: this module generates the hash required by Marvel API
npm start
The only consideration is to have a proper .env file in the root directory. This .env file requires two variables, which are the public and private api keys provided by Marvel when registering to use their API. More information ]here
REACT_APP_PUBLIC=12345678900987654321
REACT_APP_PRIVATE=1234567890qwerty0987654321