Coder Social home page Coder Social logo

firiz / colony Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 174 KB

A boilerplate for developing microservices using rabbitmq, protobuf, and node

License: GNU General Public License v3.0

JavaScript 100.00%
nodejs node microservice microservices protobuf protobufjs promise async-await amqp rabbitmq rabbit jest boilerplate

colony's Introduction

Colony

A boilerplate for developing scalable microservices using RabbitMQ (amqp) and Protocol Buffers (protobufjs) with Node.js. featuring:

  • Node.js Async/Await interface
  • Protocol Buffers
  • RabbitMQ
  • RPC Concept
  • Eslint
  • PM2 Cluster Mode

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • A running RabbitMQ instance on localhost on standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting.
  • Node (> v8.9.0)
  • Globally installed yarn (npm install -g yarn)
  • Globally installed pm2 (npm install -g pm2)

Installing

Clone repository into your local machine

git clone https://github.com/firiz/colony.git

Change directory to colony

cd colony

Install dependencies

yarn

Run services

npm start

At this point you should be able to monitor your services via pm2

pm2 ls

Or see services logs

pm2 logs

Also you can open RabbitMQ management dashboard to review your queues status

http://127.0.0.1:15672

Running the tests

Will be added soon, but you can explore:

  • Jest - Delightful JavaScript Testing

Deployment

Will be added soon, but you can explore:

  • PM2 - Advanced, production process manager for Node.js.
  • Docker - Build, Manage and Secure Your Apps Anywhere. Your Way.

Built With

  • Node.js - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
  • RabbitMQ - RabbitMQ is the most widely deployed open source message broker.
  • Protocol Buffers - Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details

colony's People

Contributors

firiz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

icecream71 bdzo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.