• Requirements • Setup • Technologies • Contributors • Bugs • Protecting Data • Cloning • API
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" |
- Copy the repo link as shown in the image below
-
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'
-
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!
-
Open Postman
-
Set your request to type 'GET'
-
http://localhost:5000/api/items/ (for index of all)
-
http://localhost:5000/api/items/id (for specific item details)
-
Hit Send
-
Open Postman
-
Set your request to type 'POST'
-
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
-
Open Postman
-
Make a GET request for the id you wish to edit
-
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
-
Open Postman
-
Set your route in Postman to the id you wish to delete
-
Set your request to Delete
-
Hit Send
No known bugs as of: 7.2.2020
with the root project folder open in your code editor, execute the following in your terminal:
cd ProjectName
npm install
npm run build
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.