Skip to content

REST service: Containerization, Docker and Database & ORM#2

Open
alekseydevksh wants to merge 13 commits into
developmentfrom
containerization-database-orm
Open

REST service: Containerization, Docker and Database & ORM#2
alekseydevksh wants to merge 13 commits into
developmentfrom
containerization-database-orm

Conversation

@alekseydevksh
Copy link
Copy Markdown
Owner

@alekseydevksh alekseydevksh commented Dec 7, 2025

Task: https://github.com/AlreadyBored/nodejs-assignments/blob/main/assignments/containerization-database-orm/assignment.md
Screenshots:
Screenshot 2025-12-08 at 00 02 00
Screenshot 2025-12-08 at 00 03 49
Screenshot 2025-12-07 at 23 56 07

Done 07.12.2025 / deadline 08.12.2025
Score: 360 / 360

Basic Scope

Containerization, Docker

  • +20 Readme.md has instruction how to run application
  • +30 user-defined bridge is created and configured
  • +30 container auto restart after crash
  • +20 application is restarting upon changes implemented into src folder
  • +30 database files and logs to be stored in volumes instead of container

Database (PostgreSQL) & ORM

  • +20 Users data is stored in PostgreSQL database and typeorm / prisma interacts with the database to manipulate data.
  • +20 Artists data is stored in PostgreSQL database and typeorm / prisma interacts with the database to manipulate data.
  • +20 Albums data is stored in PostgreSQL database and typeorm / prisma interacts with the database to manipulate data.
  • +20 Tracks data is stored in PostgreSQL database and typeorm / prisma interacts with the database to manipulate data.
  • +20 Favorites data is stored in PostgreSQL database and typeorm / prisma interacts with the database to manipulate data.

Advanced Scope

Containerization, Docker

  • +20 Final size of the Docker image with application is less than 500 MB
  • +10 Implemented npm script for vulnerabilities scanning (free solution)
  • +20 Your built image is pushed to DockerHub (https://hub.docker.com/r/advksh/home-library)

Database & ORM

  • +30 Migrations are used to create database entities
  • +10 Variables used for connection to database to be stored in .env
  • +10 typeorm decorators or prisma relations create relations between entities
  • +30 Local PostgreSQL installation is not required for task check, connection is implemented to database stored in docker container (on the basis of the previous task)

@alekseydevksh alekseydevksh changed the base branch from master to development December 7, 2025 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant