Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sshaaf/bookshelf-ui
https://github.com/sshaaf/bookshelf-ui
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sshaaf/bookshelf-ui
- Owner: sshaaf
- Created: 2023-05-17T16:51:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-29T16:33:18.000Z (about 1 year ago)
- Last Synced: 2023-11-29T17:38:26.166Z (about 1 year ago)
- Language: TypeScript
- Size: 380 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bookshelf
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.2.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
The backend API app exists here: [Quarkus based Books API](https://github.com/sshaaf/bookshelf-ui-quarkus)
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Deploying to openshift
Since this is just the frontend. we use httpd instead.
Before getting into the build process you will also need to add the Books API URL into `environments/environment.ts`
```
ng build
oc new-build --name bookshelf-ui --binary --strategy source --image-stream httpd
oc start-build bookshelf-ui --from-dir dist/bookshelf-ui --follow
oc new-app --image-stream=bookshelf-ui:latest
oc expose service/bookshelf-ui
```