- Run
npm install
in the command line - Run
npm run-script seed
to create the database and initialize it with data - Run
npm start
to start the API server
POST: /api/books
Create a single bookPOST: /api/books/:book_id/page
Create a new page for a bookGET: /api/books
Get all the book IDs and titlesGET: /api/books/:book_id
Get all the pages in a specified bookGET: /api/books/:book_id/page/page_id:
Get a single book page in HTML formatPUT: /api/books/:book_id
Update a book's titlePUT: /api/books/:book_id/page/:page_id
Update a book pageDELETE: /api/books/:book_id
Delete a bookDELETE: /api/books/:book_id/page/:page_id
Delete a book page