Sign inSign up

gmaas/wow-item-database

By gmaas

•Updated almost 4 years ago

Example project for docker workshop

Image
0

986

gmaas/wow-item-database repository overview

⁠WoW Item Database

Example project for docker workshop.

⁠Project setup

⁠Microservice

The microservice is written in Python and serves two functions:

  1. Serving the API ( GET /items )
  2. Serving the frontend ( frontend/index.html )

The frontend consists of a simple HTML page with some Bootstrap CSS and JQuery logic. It uses fetch to get the items from the API and sorts it by whatever the dropdown is set too.

⁠Database

The database required for this is a plain postgres database. For connection with the database the microservice needs to be injected with the following environment variables:

Environment VariableExplanationDefault value
DB_USERThe username for the Postgres databasepostgres
DB_PASSThe password for the Postgres databasepostgres
DB_HOSTThe host for the Postgres databaselocalhost
DB_PORTThe port for the Postgres database5432
DB_NAMEThe name for the Postgres databasepostgres

Tag summary

Content type

Image

Digest

sha256:8b9d663a8…

Size

341.8 MB

Last updated

almost 4 years ago

docker pull gmaas/wow-item-database