Giter Club home page Giter Club logo

publisher's Introduction

About Publisher

Installation

Clone application

  • Clone from GitHub

Install Docker and Configure Bash

  • Install Docker (for Linux) or Docker Desktop for another OS
  • cd into application directory and run vendor/bin/sails up to start application. You may want to configure a bash alias so that you may execute Sail commands by simply typing sail instead of the long vendor/bin/sails up command.
  • To configure a bash alias for Sail, cd into application directory and run alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail' for as long as the terminal lasts. Henceforth, you'll be able to start the application using sail up.
  • Once the application's Docker containers have been started, you can access the application in your web browser at: http://localhost

Edit Environment Variables

  • Edit .env: get your INET address and use it as the value of DB_HOST. You can use hostname -I | awk '{print $1}' to get an INET address on Linux machines

Run setup.sh script

  • Run the command . setup.sh to set up RabbitMQ queues and other configurations

Running the application

Use an API testing tool such as Postman to make a POST request to http://localhost/api/publish/topic1. Ensure that you pass the JSON data below as request body:

{
    "msg": "you can enter any string e.g. hello"
}

The message will be published to messaging queue and transmitted to the concerned services.

License

Unlicensed

publisher's People

Watchers

 avatar

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.