Skip to content

Famalis/8stars-task1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Start the frontend by calling "npm start" from the "frontend" folder, and the backend by calling "sails lift" from the "backend" folder. Remember to call npm i for both folders. To run the backend You will need to install sails globally: "npm i -g sails". When everything is up and running, open localhost:4200 in Your browser.

Tasks:

  1. Rewrite the BookController functions (getBooks and getBook) in the backend to use the async / await keywords with try / catch error handling.
  2. Implement code that will show author names in the book list instead of ids.
  3. Edit the app-book-item component in the frontend, so that is shows all data for the selected book (including description).
  4. Implement code for the "Add to basket" button, so the book is added to the "books" array in the BasketComponent and displayed in html as a list.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published