Skip to content

This project provides a RESTful service for managing a Home Library where users can create, read, update, and delete data about artists, albums, and tracks. Users can also add these items to their personal Favorites list.

Notifications You must be signed in to change notification settings

asadbekiv/nodejs2024Q3-service

Repository files navigation

Home Library Service

Prerequisites

Downloading

git clone https://github.com/asadbekiv/nodejs2024Q3-service.git

Change directory

cd nodejs2024Q3-service

Switch branch

git checkout containerization-database-orm

Create Environment

make sure there is only one .env file.
cp .env.example ./.env

Run Docker

docker compose up

docker pull asadbek10/nodejs2024q3-service:latest

See created images

docker images

After starting the app on port (4000 as default) you can open in your browser OpenAPI documentation by typing http://localhost:4000/doc/. For more information about OpenAPI/Swagger please visit https://swagger.io/.

Testing

After application running open new terminal and enter:

To run all tests without authorization

npm run test

To run only one of all test suites

npm run test -- <path to suite>

To run all test with authorization

npm run test:auth

To run only specific test suite with authorization

npm run test:auth -- <path to suite>

Auto-fix and format

npm run lint
npm run format

Debugging in VSCode

Press F5 to debug.

For more information, visit: https://code.visualstudio.com/docs/editor/debugging

About

This project provides a RESTful service for managing a Home Library where users can create, read, update, and delete data about artists, albums, and tracks. Users can also add these items to their personal Favorites list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages