Skip to content

kaclabough/ga-project-3-animeDB-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ga-project-3-animeDB-api

This website is a database of anime and users. the users will be able to create lists of their favorites as well as what anime they are currently watching.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • node.js

Installing

  1. fork and clone this repo

  2. cd to ga-project-3-animeDB-api

  3. run npm install

Running the tests

REST routes for Anime model: path: api/anime

URL Path Method Action Description
/anime / GET #index List of all Anime
/anime/id /id/:id GET #findId Find one Anime by ID
/anime/new /new POST #create Create a new Anime
/anime/title /title/:title PUT #updateTitle Update existing Anime entry by title
anime/id /id/:id PUT #updateId Update existing Anime entry by id

REST routes for User model: path: /api/users

URL Path Method Action Description
/users / GET #index List of all Users
/users/ref/ /ref/:email GET #getbyref Get user by email
/users/acc/ /acc/:email GET #getbyacc Get user by email used for UserAuth
/users/signup/ /signup POST #signUp Add new user to database
/users/login /login POST #login User Authentication
/users/acc /acc/:email PUT #update Update User entry by email
/users/id /id/:id DELETE #delete Remove user from dateabase by id
users/deleteall /deleteall DELETE #deleteAll Empty user database (for testing purposes only)

Deployment

Deployed with Heroku with the database hosted on MongoDB Atlas

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Keene Wong - User Authentication - Creator - KeeneWong

  • Kyle Clabough - Initial Development - Creator - SirAirdude

License

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

Acknowledgments

Data obtained from James Harris' Kitsu-api

About

back-end for anime Database website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •