Now that we've laid out the base structure and integrated our shared module, we can turn our attention to the books.
Implementing the book module
Creating the module
Go back to the application's app module folder (that is, src/app) and create a new book module to encapsulate the code specific to books:
- cd <path to mediaman-v2>/src/app
- ng g module book
- cd book
Then, create the book entity:
ng g class entities/book --type="entity"
Then, copy over the code from the previous implementation, which you can find here: Chapter08/mediaman-v2/src/app/book/entities/book.entity.ts.
The next element on our list is the book service. Create it using the following:
ng g service services/book
In the previous version...