Express + MongoDB + Marvel API
- Searches the Marvel database for the characters using the Marvel API
- Show power levels of popular Marvel characters
- Data provided by Marvel. © Marvel
- Import power levels data:
mongoimport --db marvel --collection powerlevels --type json --file data/powerlevels.json --jsonArray
- Get Marvel API keys from https://developer.marvel.com/
- Add your keys to
config/config.js
- Install required dependencies:
npm install yarn -g
yarn
- Have Mongo running:
mongod
- Run server (port 8080):
npm start
- Run tests:
npm test
- Returns marvel characters that start with {name} and {limit} number of results
- Returns marvel characters with power levels for intelligence, strength, speed, durability, energy projection, and fighting ability.