Skip to content

thomasglenngit/movie-finder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Movie Finder

An application for compliling a list of your favorite movies, July 1st, 2020.

An application using an API allowing the user to create lists of their favorite movies.

Specs

Spec Input Output Completed
The program should take in a movie title request "Movie Title" no output
The program should match the movie request with an API call "Beastman" "Beastman"
The program should return the movie title (and synopsis) "Terminator" "Terminator" "He kills everyone"
The program should add the movie title to the user's "favorites" list "Favorites" "Beastmaster" "Terminator"
The program should display the user's favorites movie list "Favorites" "Beastmaster" "Terminator"

REQUIREMENTS

Postman

Visual Studio Code

Node.js

SETUP

CLONING

  • Copy the repo link as shown in the image below

cloning

  • Paste the link in the field provided by VsCode as thown in the image below

  • You will be prompted to open the directory once you have cloned it. Select 'open'

cloning


PROTECTING YOUR DATA

  • Step 1: create a .gitignore file in the top level of your project directory. populate the file as shown in step 1 of the image below.

  • Step 2: commit that .gitignore file (this prevents your sensitive information like your API key being shown to others). DO NOT PROCEED UNTIL YOU DO THIS!

setup


POSTMAN API REQUESTS

TO GET AN ITEM

TO ADD AN ITEM

  • Open Postman

  • Set your request to type 'POST'

  • http://localhost:5000/api/items/

  • Select Body Tab

  • Select Raw Radio Button

  • Select JSON from dropdown

  • Write your addition to the database in the following format


{itemId: 1, itemName: 'Mark', itemDate: '8/13/2020', itemDetails: 'big''}

  • Hit Send

TO EDIT AN ITEM

  • Open Postman

  • Make a GET request for the id you wish to edit

  • http://localhost:5000/api/items/id

  • You can select the returned item data and paste that into your request body section for editing.

  • Once you have completed your edits.

  • Set your request to Put

  • Hit Send

TO DELETE AN ITEM

  • Open Postman

  • Set your route in Postman to the id you wish to delete

  • Set your request to Delete

  • Hit Send


TECHNOLOGIES USED

Javascript

CSS

Bootstrap

HTML

Node.js

Jquery

Visual Studio Code


KNOWN BUGS

No known bugs as of: 7.2.2020


INSTALL

INSTALLING WITH NODE

with the root project folder open in your code editor, execute the following in your terminal:

cd ProjectName

npm install

npm run build


❤️Contributors


Joseph Pearce


Mariel Hamson


Thomas Glenn



alt text

Copyright © 2020 Thomas Glenn, Mariel Hamson, Joseph Pearce

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.8%
  • HTML 11.8%
  • CSS 1.4%