MCPcopy
hub / github.com/crizstian/cinema-microservice

github.com/crizstian/cinema-microservice @main sqlite

repository ↗ · DeepWiki ↗
97 symbols 156 edges 108 files 0 documented · 0%
README

Build a NodeJS microservice and deploy it to Docker

This is the repo example for the article.

Stack

We’ll use a simple NodeJS service with a MongoDB for our backend. - NodeJS 7.5.0 - MongoDB 3.4.2 - Docker for Mac 1.13.0

Microservices

How to run the cinema microservice

We need to have docker installed previously.

$ bash < kraken.sh

This will basically install every microservice and setup the docker swarm cluster

and deploy every docker service in the swarm.

To monitor the cluster in a graphic mode we can go and visit the following url: http://192.168.99.100:9000

and this will give us the rancherOS web interface.

Blog posts

LICENSE

The MIT License (MIT)

Copyright (c) 2017 Cristian Ramirez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Core symbols most depended-on inside this repo

resolve
called by 23
booking-service/src/config/di/di.proto.js
resolve
called by 9
payment-service/src/config/di/di.proto.js
resolve
called by 6
notification-service/src/config/di/di.proto.js
createContainer
called by 3
booking-service/src/config/di/di.proto.js
createContainer
called by 2
notification-service/src/config/di/di.proto.js
createContainer
called by 2
payment-service/src/config/di/di.proto.js
repository
called by 1
notification-service/src/repository/repository.js
repository
called by 1
api-gateway/src/repository/repository.js

Shape

Function 97

Languages

TypeScript100%

Modules by API surface

cinema-catalog-service/src/repository/repository.js10 symbols
movies-service/src/repository/repository.js9 symbols
payment-service/src/repository/repository.js7 symbols
booking-service/src/repository/repository.js7 symbols
payment-service/src/config/di/di.proto.js5 symbols
notification-service/src/config/di/di.proto.js5 symbols
booking-service/src/config/di/di.proto.js5 symbols
api-gateway/src/docker/docker.js5 symbols
notification-service/src/repository/repository.js4 symbols
movies-service/src/api/movies.spec.js3 symbols
cinema-catalog-service/src/api/cinema-catalog.spec.js3 symbols
booking-service/src/api/booking.spec.js3 symbols

Dependencies from manifests, versioned

awilix2.2.2 · 1×
body-parser1.16.0 · 1×
cors2.8.1 · 1×
dockerode2.3.1 · 1×
eslint3.13.1 · 1×
express4.14.0 · 1×
helmet3.4.0 · 1×
http-proxy1.16.2 · 1×
http-proxy-middleware0.17.3 · 1×
http-status0.2.5 · 1×
joi10.2.0 · 1×
mocha3.2.0 · 1×

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add cinema-microservice \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact