{"id":21559684,"url":"https://github.com/evgesoch/pamak-online-library","last_synced_at":"2026-04-05T23:03:56.825Z","repository":{"id":241937806,"uuid":"191235420","full_name":"evgesoch/pamak-online-library","owner":"evgesoch","description":"A minimal, containerized microservices application that manages an online library service.","archived":false,"fork":false,"pushed_at":"2020-07-25T08:32:07.000Z","size":7191,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-24T11:12:16.016Z","etag":null,"topics":["docker","docker-compose","expressjs","microservices","mongodb-atlas","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evgesoch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-10T19:47:57.000Z","updated_at":"2020-07-25T08:32:09.000Z","dependencies_parsed_at":"2024-05-30T21:03:38.587Z","dependency_job_id":null,"html_url":"https://github.com/evgesoch/pamak-online-library","commit_stats":null,"previous_names":["evgesoch/pamak-online-library"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgesoch%2Fpamak-online-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgesoch%2Fpamak-online-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgesoch%2Fpamak-online-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgesoch%2Fpamak-online-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evgesoch","download_url":"https://codeload.github.com/evgesoch/pamak-online-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244155541,"owners_count":20407365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","expressjs","microservices","mongodb-atlas","nodejs"],"created_at":"2024-11-24T09:08:42.723Z","updated_at":"2025-12-30T21:50:11.975Z","avatar_url":"https://github.com/evgesoch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pamak-online-library\nA minimal, containerized microservices application that manages an online library service.\n\n## General info\n:information_source: The app was developed in a pc running Windows 8.1 and the terminal used for setting up the Docker containers is **Git Bash**.\n\n:information_source: No front-end has been implemented yet.\n\n:information_source: Connecting to MongoDB Atlas requires establishing a secure connection between the container environment and the Atlas Cloud. Follow this [guide](https://docs.docker.com/engine/security/https/) for more info on how to achieve secure connection.\n\n:information_source: The application was influenced by [Academind's Node.js tutorial](https://www.youtube.com/playlist?list=PL55RiY5tL51q4D-B63KBnygU6opNPFk_q).\n\n## Setup\nIn order to run the application, follow the steps below: \n### Without using docker-compose\n1. Change the _ENV_ variables inside the _Dockerfiles_ to match your own credentials for MongoDB Atlas.\n2. ```$ cd``` into every service directory (e.g. ```$ cd books```) and build the service image, e.g. for the books service type the command ```$ docker build -t books_service:1.0```.\n3. Then run the container with ```$ docker run -v \"/$(pwd):/usr/src/books\" --publish 3000:3000 --name bs books_service:1.0```.\n4. Repeat for the other containers (don't forget to change the port to _3050_ for customers and _3100_ for orders service) and you're good to go.\n### By using docker-compose\n1. You can define the environment variables inside the _docker-compose.yml_ file instead of the _Dockerfiles_, but it's not necessary. But it would be better to store more building image logic into the _docker-compose.yml_ file rather than every individual service's _Dockerfile_.\n2. ```$ cd``` into the project directory and type ```$ docker-compose up```. The app is now running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevgesoch%2Fpamak-online-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevgesoch%2Fpamak-online-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevgesoch%2Fpamak-online-library/lists"}