I started this project in order to teach myself Angular 2, Typescript, and Bootstrap 4. The design is entirely hand-coded to be responsive using Bootstrap 4. The content (list of books on the home page) is dynamically pulled from Contentful using the Content Delivery API. My goal for this project was to use Angular 2 best-practices to develop a clean, beautiful, and database-free web application.
After cloning this project, run npm install
to install the required packages.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class/module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.