Skip to content

CoolStore Frontend with NodeJS and AngularJS

Notifications You must be signed in to change notification settings

OpenShiftDemos/web-nodejs

This branch is 2 commits ahead of, 2 commits behind coolstore-demo/web-nodejs:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

158923b · Mar 11, 2025

History

30 Commits
Feb 21, 2023
Dec 3, 2020
Feb 14, 2023
Feb 15, 2023
Sep 12, 2022
Dec 3, 2020
Feb 15, 2023
Dec 3, 2020
Sep 12, 2022
Feb 11, 2025
Feb 11, 2025
Feb 14, 2023
Oct 27, 2021
Oct 27, 2021
Nov 3, 2021
Dec 3, 2020
Feb 14, 2023
Feb 14, 2023
Sep 12, 2022
Feb 11, 2023

Repository files navigation

web-nodejs

CoolStore Frontend with NodeJS and AngularJS.

The overall architecture of the application that you will deploy is the following:


Coolstore Architecture

  • Catalog Service exposes using a REST API content of a catalog stored in a relational database
  • Inventory Service exposes using a REST API the inventory stored in a relational database
  • Gateway Service calls the Catalog Service and Inventory Service in an efficient way
  • WebUI Service calls Gateway Service to retrieve all the informations.

Use this environment variable to connect to the Gateway Service (default is http://localhost:8090):

COOLSTORE_GW_ENDPOINT

Example:

COOLSTORE_GW_ENDPOINT=http://gateway-vertx.somewhere.tld

If you are using HTTPS please consider CORS and use HTTPS everywhere, use this environment variable:

SECURE_COOLSTORE_GW_ENDPOINT

Example:

SECURE_COOLSTORE_GW_ENDPOINT=https://gateway-vertx.somewhere.tld

The UI fetches products every 5 seconds by default. This can be changed by setting the PRODUCT_REFRESH_INTERVAL to a value represented in milliseconds, e.g PRODUCT_REFRESH_INTERVAL=3000 for a 3 second refresh interval.

The outcome is an online store with a catalog of product items and an inventory of stock:

Coolstore Shop

Developer Workspace

Contribute

About

CoolStore Frontend with NodeJS and AngularJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.0%
  • HTML 25.2%
  • CSS 1.8%
  • Dockerfile 1.0%