/inl3

Assignment 3 in Flerplattformsapplikationer

Primary LanguageJavaScriptMIT LicenseMIT

Compare the heroes

A simple webapp to compare two superheroes using the superhero-api to get the information and presenting it with Chart.js Part of the course Flerplattformsapplikationer assignment 3

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

To install you need npm (bundled with Node.js) or yarn

Installing

Clone the repository

cd into directory

yarn or npm install

In the folder:

create /js/key.js and add module.exports.apiKey = [api key for https://superheroapi.com/]

Back to the console/terminal:

run webpack or node_modules/webpack-cli/bin/cli.js if that the first doesnt work

Open dist\html\index.html in a browser

...and enjoy or at least try to have fun with it!

Built With

  • Yarn & npm - Packagehandlers, started with npm but for reasons unknown switched to yarn shortly after.
  • webpack - used for bundling
  • SuperheroAPI - The API used
  • Chart.js - js library used for the chart (obviously...)
  • axios - js library used for the api calls

Versioning

Git and GitHub used for versioning.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details