Skip to content

kaclabough/GA-Project-2-DSCS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GA-Project-2-DSCS-API

This api is for the Digimon included in the game Digimon Story: Cyber Sleuth. The user will be able to see a digimons digivolutions and their support skills, as well as a list of all attacks present in the game.

Getting Started

  1. Clone the repo
  2. Run npm install

Prerequisites

You will need

  • mongodb
  • postman
  • node

Installing

  1. Start the mongo server
sudo service mongod start
  1. From the project's root directory, seed the database by using the commands:
node db/seeding/seed-data.js
node db/seeding/seed-reference.js
  1. Open the connection to the database by running node index.js

Running the tests

Youtube Tutorial: https://youtu.be/o4hJTz6Ez4k

this project is deployed here

REST routes for the Digimon model:

URL Path Method Action Description
/digimon / GET #index List all to Digimon
/digimon/name /name/:name GET #show Displays a single Digimon by name
/digimon/stage /stage/:stage GET #show Lists all Digimon with the same stage
/digimon/attribute /attribute/:attribute GET #show Lists all Digimon with the same attribute
/digimon/type /type/:type GET #show Lists all Digimon with the same type
/digimon / POST #create Creates a new Digimon in the database
/digimon /:name PUT #update Updates specified Digimon in the database
/digimon /:name DELETE #delete Deletes specified Digimon from the database

REST routes for the Move model:

URL Path Method Action Description
/moves / GET #index List of all Moves
/moves/name /name/:name GET #show Displays a single Move by name
/moves/type /type/:type GET #show Lists all moves with the same type
/moves/attribute /attribute/:attribute GET #show Lists all moves with the same attribute
/moves / POST #create Creates a new Move in the database
/moves /moves/:name PUT #update Updates specified Move in the database
/moves /moves/:name DELETE #delete Deletes specified Move from the database

REST routes for the Skill model:

URL Path Method Action Description
/skills / GET #index List of all Skills
/skills/id id/:id GET #show Displays a single Skill by ID
/skills/name /name/:name GET #show Displays a single Skill by name
/skills / POST #create Creates a new Skill in the database
/skills /:name PUT #update Updates specified Skill in the database
/skills /:name DELETE #delete Deletes specified Skill from the database

Built With

Future Objectives

  • Update database with data from sequel game
  • Add an Array of object id in Digimon model that references the Move model
  • Change the Array of Digivolutions and Degerations to object id refernces to entries of the Digimon model

Authors

License

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

Acknowledgments