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.
- Clone the repo
- Run
npm install
You will need
- mongodb
- postman
- node
- Start the mongo server
sudo service mongod start
- 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
- Open the connection to the database by running
node index.js
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 |
- 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
- Kyle Clabogh - Initial work - SirAirdude
This project is licensed under the MIT License - see the LICENSE.md file for details
- Dataset created by Mark Korsak
- Dataset obtained from: https://www.kaggle.com/rtatman/digidb