# cdbookstore

> This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.1.2.

Latest version **0.0.0** (published 2019-01-25) · 0 weekly downloads

## Install

```sh
npm install cdbookstore
pnpm add cdbookstore
yarn add cdbookstore
bun add cdbookstore
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2019-01-25 |
| First published | 2019-01-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 290.1 KB |
| Known vulnerabilities | 0 (+24 in 4 direct dependencies) |
| Install scripts | no |
| Maintainers | sreekamalesh123 |

## Links

- npm: https://www.npmjs.com/package/cdbookstore
- npm.io page: https://npm.io/package/cdbookstore

## Dependencies (16)

- [rxjs](https://npm.io/package/rxjs.md) ^6.0.0
- [jquery](https://npm.io/package/jquery.md) ^3.3.1
- [core-js](https://npm.io/package/core-js.md) ^2.5.4
- [zone.js](https://npm.io/package/zone.js.md) ~0.8.26
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.1.3
- [@angular/core](https://npm.io/package/@angular/core.md) ^6.1.0
- [@angular/http](https://npm.io/package/@angular/http.md) ^6.1.0
- [@angular/forms](https://npm.io/package/@angular/forms.md) ^6.1.0
- [@angular/common](https://npm.io/package/@angular/common.md) ^6.1.0
- [@angular/router](https://npm.io/package/@angular/router.md) ^6.1.0
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ^6.1.0
- [@angular/animations](https://npm.io/package/@angular/animations.md) ^6.1.0
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) ^6.1.0
- [@ng-bootstrap/ng-bootstrap](https://npm.io/package/@ng-bootstrap/ng-bootstrap.md) ^2.2.2
- [@fortawesome/fontawesome-free](https://npm.io/package/@fortawesome/fontawesome-free.md) ^5.2.0
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) ^6.1.0

## Recent versions

- 0.0.0 (latest) — 2019-01-25

## README

# Cdbookstore

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.1.2.

## How to execute the project

To execute this code you need Node.JS, Yarn and Angular CLI

After getting the code, type the following commands : 

```
cdbookstore $ yarn
cdbookstore $ ng build generator
cdbookstore $ ng build inventory
cdbookstore $ ng build store
cdbookstore $ ng serve
```

Then go to : http://localhost:4200

When you navigate, you will see that the URL changes depending on the project (Generator, Inventory, Store)

* http://localhost:4200/str
* http://localhost:4200/inv
* http://localhost:4200/gen

## How the project was created

Here are the commands and the steps that were used to create this project 

### Main application CDBookStore

#### NG CLI Commands

```
# Create a new Angular project with Angular CLI
$ ng new cdbookstore --directory cdbookstore --routing true --skip-tests true --inline-style true

# Add the needed dependencies
$ yarn add @fortawesome/fontawesome-free@5.2.0
$ yarn add jquery@3.3.1
$ yarn add bootstrap@4.1.3
$ yarn add @ng-bootstrap/ng-bootstrap@2.2.2
```

The main application has two components

```
$ ng generate component home --inline-style true --spec false
$ ng generate component about --inline-style true --spec false
```

#### Configuration

In `angular.json` file add :

```
"styles": [
  "node_modules/bootstrap/dist/css/bootstrap.min.css",
  "node_modules/@fortawesome/fontawesome-free/css/all.css",
  "src/jumbotron.css",
  {
    "input": "src/styles.css"
  }
],
"scripts": [
  "node_modules/jquery/dist/jquery.slim.js",
  "node_modules/bootstrap/dist/js/bootstrap.bundle.js"
]
```

In `app.module.ts` add NG Bootstrap

```
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

  imports: [
    NgbModule.forRoot()
  ],
```


### Store Library

#### NG CLI Commands

```
# Create a new Angular library with Angular CLI
$ ng generate library store --prefix str
$ ng generate component store --project store --inline-style true
```

The Store library has several components

```
$ ng generate component Home --project store --inline-style true --spec false
$ ng generate component BookList --project store --inline-style true --spec false
$ ng generate component BookDetail --project store --inline-style true --spec false
$ ng generate component CdList --project store --inline-style true --spec false
$ ng generate component CdDetail --project store --inline-style true --spec false
$ ng generate component DvdList --project store --inline-style true --spec false
$ ng generate component DvdDetail --project store --inline-style true --spec false
```

Build the library so you can use it

```
$ ng build store
```

### Inventory Library

#### NG CLI Commands

```
# Create a new Angular library with Angular CLI
$ ng generate library inventory --prefix inv
```

The Inventory library has several components

```
$ ng generate component Home --project inventory --inline-style true --spec false
$ ng generate component ItemList --project inventory --inline-style true --spec false
```

Build the library so you can use it

```
$ ng build inventory
```

### Number Generator Library

#### NG CLI Commands

```
# Create a new Angular library with Angular CLI
$ ng generate library generator --prefix gen
```

The Generator library has several components

```
$ ng generate component Home --project generator --inline-style true --spec false
$ ng generate component BookNumber --project generator --inline-style true --spec false
$ ng generate component CdNumber --project generator --inline-style true --spec false
$ ng generate component DvdNumber --project generator --inline-style true --spec false
```

Build the library so you can use it

```
$ ng build generator
```

## Development server

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.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

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.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

## References

* [How to build a library for Angular apps?](https://medium.com/@tomsu/how-to-build-a-library-for-angular-apps-4f9b38b0ed11)
* [BOOTSTRAP SIDEBAR](https://bootstrapious.com/p/bootstrap-sidebar)

---
_Source: https://npm.io/package/cdbookstore · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
