I created this demo primarily to learn more about Promises, the Fetch API, and WebPack.
To display user profile data I used the randomuser.me API.
Feel free to clone the repo and play around with the source code in src/index.js
.
Clone this repo to your local maschine and install all dependencies:
$ git clone https://github.com/koester/random-profile-generator.git
$ cd random-profile-generator
$ npm install
After that you can run the app using $ npm run start
. To lint your code with ESLint and to generate a minified dist/bundle.js
simply run $ npm run build