- Pull Request
- travis not setup
- front-end (I do not have the link to heroku)
- swagger (extension will be posted when heroku is made)
- jsdoc (extension will be posted when heroku is made)
- This module calls all of the separat e modules that have been used to define the app.
- exports the information.
- Sets up the jsdocs.
- sets up the ejs files to render.
- Starts the app listening.
- This module calls all of the separat e modules that have been used to define the app.
- exports the information.
- Sets up the jsdocs.
- sets up the ejs files to render.
- Starts the app listening.
starts up the app
- Handles the hide function server side for the form
- Handles the mongo routes
- Exports all of the methods used in the module
- Handles the get route for books.
- Takes in parameters request resonse next.
- renders the new page if the book is found, otherwise renders the index
- Handles the search from the google books api, giving us the information to store in our own api.
- Takes in parameters request and response
- Handles the rendering of a new page upon a search
- uses response
- Handles the get method from our own saved database to retrieve a particular book.
- Takes in request and response. Imports getBookshelves. Renders the show page
- Handles the get method from our own saved database to retrieve the bookshelves so we may look through them to apply to the particular book .
- exported to getBook
- Handles the post method for bookshelves to our own saved database to create bookshelves for the user if the bookshelf does not already exist
- Handles the post method to our own saved database to save books for the user.
- Has the crewteshelf if the shelf specified does not already exist
- renders individual book page when done
- Handles the put method for books. Used to update book information for the user should it be wrong.
- Renders specific book shen its done
- Handles the delete method to our own saved database to delete saved books for the user
- renders home page when run
- Handles the error running it whenever there is an issue
- Handles the PSQL routes
- Exports all of the methods used in the module
- Handles get for the books in our database.
- Takes request and response.
- Outputs all books and renders them to index, or renders new if there are no books.
- Handles get for the books in our database.
- Takes request and response.
- Outputs all books and renders them to index, or renders new if there are no books.
- Handles call to google books api.
- Takes request and response.
- Outputs all from search query and renders to show page.
- Handles retrieval of an individual of our books in our database.
- Calls the bookshelves.
- Renders on the show page
- Handles retrieval of an individual of our books in our database.
- Calls the bookshelves.
- Renders on the show page###### `getBookshelf
- Retrieves all bookshelves. Used in getBook
- Handles what happenes if a shelf doesnt exist. usually used when a new book is created
- Handles post for a new book in PSQL. Utilizes createbooks
- Inputs of request and resonse
- renders output book o individual ID page
- Handles put request for a book
- takes input of request and response
- renders onto individual book page
- Handles delete method for PSQL
- renders on error pages
- this module is used render the page when another page throws an error
- renders error page
- handles errors and renders it to error page
- Creats the book class extended for mongo-model, and uses books shcema to define it
- this defines the shape of the books object for mongo. adds the bookshelf appropriate from the bookshelves object to the book capablities of every class created for the model used for each of the models
- defines base book object
- adds bookshelf to it
- defines the structre of the books class in pg
- Creats the bookshelf class extended for mongo-model, and uses bookshelf shcema to define it
- Creats the is uesd to define the bookshelf class with an id of the bookshelf's name
- this defines the CRUD capablities of every class created for the model used for each of the models
- get method that calls by ID
- post method that calls by ID
- put method that calls by ID
- delete method that calls by ID
- This modlue normalizes the model, and creates require model for appropriate model where needed
PORT
- port defined in .env and pulled from there. Usually usesMONGODB_URI
- URL to the running mongo instance/db- uses scripts. Install them with
npm i __
- mongo
- mongod
- pg
- express
- superagent
- methodOverride
- mongoose
- ejs
- Should come up on the initial server when loaded through.
- Get routes can be accessed throug initial page.
- Unsure how tests are (for spencer to input)