Skip to content

Node.js REST API - Power levels of popular Marvel characters

Notifications You must be signed in to change notification settings

xphong/marvel-powerlevels-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marvel Power Levels Api

Express + MongoDB + Marvel API

Getting Started

Import Mongo Database Collection

  • Import power levels data:
mongoimport --db marvel --collection powerlevels --type json --file data/powerlevels.json --jsonArray

Add Marvel API Public/Private Keys

Dependencies

  • Install required dependencies:
npm install yarn -g
yarn

Scripts

  • Have Mongo running: mongod
  • Run server (port 8080): npm start
  • Run tests: npm test

API

GET /characters?name={name}&limit={limit}

  • Returns marvel characters that start with {name} and {limit} number of results

GET /powerlevels

  • Returns marvel characters with power levels for intelligence, strength, speed, durability, energy projection, and fighting ability.

About

Node.js REST API - Power levels of popular Marvel characters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published