Git Product home page Git Product logo

marvel_universe.js's Introduction

marvel_universe.js

Build an AngularJS application with the Marvel Developer API

Preparations

To use this application, please register an account at Marvel Developer Portal. You will need to create a MyCredentials module to handle the authentication. Please clone this repository and then create credentials.js in the project directory app/js using the following template:

angular.module("marvelApp.credentials", []).
factory('MyCredentials', function() {
  return {
    generate: function() {
      var timestamp = new Date().getTime();
      var private_key = "YOUR_MARVEL_DEVELOPER_PRIVATE_KEY";
      var public_key = "YOUR_MARVEL_DEVELOPER_PUBLIC_KEY";
      var hash = CryptoJS.MD5(timestamp + private_key + public_key);
      return {ts: timestamp,  apikey: public_key, hash: hash.toString()};
    }
  };
});

You need to fill in the private key and public key from your Marvel account into the private_key and public_key variables respectively.

Usage

TBA

Development

TBA

License

marvel_universe.js is provided under the terms of the MIT license.

Copyright © 2015, Willie Tong. All rights reserved. Please see the {file:LICENSE} file for further details.

marvel_universe.js's People

Contributors

sytong avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.