https://github.com/spectrocloud/hello-universe-db
A Spectro Cloud demo application. This is the database that supports the Hello Universe app.
https://github.com/spectrocloud/hello-universe-db
Last synced: 5 months ago
JSON representation
A Spectro Cloud demo application. This is the database that supports the Hello Universe app.
- Host: GitHub
- URL: https://github.com/spectrocloud/hello-universe-db
- Owner: spectrocloud
- License: mpl-2.0
- Created: 2022-12-29T15:29:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-02T14:18:02.000Z (6 months ago)
- Last Synced: 2026-01-08T20:20:46.692Z (5 months ago)
- Language: JavaScript
- Size: 1.97 MB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/semantic-release/semantic-release)
# Hello Universe DB
A Spectro Cloud demo application. This is the database that supports the [Hello Universe API](https://github.com/spectrocloud/hello-universe-api).
# Overview
The [Hello Universe](https://github.com/spectrocloud/hello-universe) app includes an [API server](https://github.com/spectrocloud/hello-universe-api) that relies on a Postgres database for storing the number of events and other metadata about the events such as the browser, os, and timestamp. For your convenience, a Postgres container is available for use.
## Prerequisites
Ensure [Docker Desktop](https://www.docker.com/products/docker-desktop/) is available on your local machine.
- Use the following command and ensure you receive an output displaying the version number.
```
docker version
```
Alternatively, you can install [Podman](https://podman.io/docs/installation).
- If you are not using a Linux operating system, create and start the Podman Machine in your local environment. Otherwise, skip this step.
```
podman machine init
podman machine start
```
- Use the following command and ensure you receive an output displaying the installation information.
```
podman info
```
## Usage
You can issue the following commands to use the container with Docker.
```
docker pull ghcr.io/spectrocloud/hello-universe-db:1.1.0 && \
docker run -p 5432:5432 ghcr.io/spectrocloud/hello-universe-db:1.1.0
```
If you choose Podman, you can use the following commands.
```
podman pull ghcr.io/spectrocloud/hello-universe-db:1.1.0 && \
podman run -p 5432:5432 ghcr.io/spectrocloud/hello-universe-db:1.1.0
```
The command you issued downloaded the container and exposed port `5432`. The default user name is `postgres` and the password is `password`.
### Database Schema
The database uses the following schema for the `counter` table.
| Field | Description | Type |
| --------- | -------------------------------------------- | --------- |
| `id` | The primary key. | Number |
| `page` | The page associated with the event. | Varchar |
| `date` | The timestamp of the event. | Timestamp |
| `browser` | The client web browser. | Varchar |
| `os` | The client operating system. | Varchar |
## Image Verification
We sign our images through [Cosign](https://docs.sigstore.dev/signing/quickstart/). Review the [Image Verification](./docs/image-verification.md) page to learn more.