vlasischar / angular-heroes

An Angular application that interacts with the Marvel Comics API

Home Page:https://angular-superheroes.web.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular Heroes

Open in Visual Studio Code

An Angular application that uses Angular Material and interacts with the Marvel Comics API. The purpose of the application is to demonstrate how to apply common Angular techniques and use some of the Angular Material components.

It provides a basic search engine over the characters and comics Marvel database. It allows to find a hero character and view information such as basic details and comics.

Preview

Setup

Clone this repo to your desktop and run npm install to install all the dependencies.

Usage

Before you start, you must acquire a developer key from Marvel Developer Portal. After you get one, replace apiKey variable in src/environments files with the newly acquired public key.

export const environment = {
  ...
  apiEndpoint: 'http://gateway.marvel.com/v1/public/',
  apiKey: '<Your public key here>'
};

Important note

In the Marvel Developer Portal you should, also, set an authorized referrer. Just set it to *.

Run ng serve to start the application. You will then be able to access it at http://localhost:4200

About

An Angular application that interacts with the Marvel Comics API

https://angular-superheroes.web.app

License:MIT License


Languages

Language:TypeScript 87.5%Language:HTML 7.4%Language:JavaScript 3.5%Language:CSS 1.6%